Changeset 1058 for trunk/bb-admin/upgrade-functions.php
- Timestamp:
- 01/22/2008 07:31:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/bb-admin/upgrade-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/upgrade-functions.php
r1053 r1058 24 24 $bb_upgrade[] = bb_upgrade_1010(); // Make sure all forums have a valid parent 25 25 $bb_upgrade[] = bb_upgrade_1020(); // Add a user_nicename to existing users 26 $bb_upgrade[] = bb_upgrade_1030(); // Move admin_email option to from_email 26 27 bb_update_db_version(); 27 28 return $bb_upgrade; … … 503 504 } 504 505 506 // Move admin_email option to from_email 507 function bb_upgrade_1030() { 508 if ( ( $dbv = bb_get_option_from_db( 'bb_db_version' ) ) && $dbv >= 1058 ) 509 return; 510 511 $admin_email = bb_get_option('admin_email'); 512 if ($admin_email) { 513 bb_update_option('from_email', $admin_email); 514 } 515 bb_delete_option('admin_email'); 516 517 bb_update_option( 'bb_db_version', 1058 ); 518 519 return 'Done moving admin_email to from_email: ' . __FUNCTION__; 520 } 521 505 522 function bb_deslash($content) { 506 523 // Note: \\\ inside a regex denotes a single backslash.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)