<p>Afterwards retry to start the <a href=\"\">setup</a>.</p>" );
}
-
-require_once( "$IP/maintenance/updaters.inc" );
-
class ConfigData {
function getEncoded( $data ) {
# removing latin1 support, no need...
echo "<li>Connect failed.</li>";
if ($useRoot) {
if (ini_get('oci8.privileged_connect') === false) {
- echo "<li>Privileged connect disabled, please set oci8.privileged_connect or run maintenance/ora/user.sql script manually prior to continuing.</li>";
+ echo "<li>Privileged connect disabled, please set oci8.privileged_connect or run maintenance/oracle/user.sql script manually prior to continuing.</li>";
$ok = false;
} else {
$wgDBadminuser = $conf->RootUser;
if ($wgDatabase->isOpen()) {
$wgDBOracleDefTS = $conf->DBdefTS_ora;
$wgDBOracleTempTS = $conf->DBtempTS_ora;
- $res = $wgDatabase->sourceFile( "../maintenance/ora/user.sql" );
+ $res = $wgDatabase->sourceFile( "../maintenance/oracle/user.sql" );
if ($res !== true) dieout($res);
} else {
echo "<li>Invalid database superuser, please supply a valid superuser account.</li>";
print "</ul><pre>\n";
chdir( ".." );
flush();
- do_all_updates();
+
+ $updater = DatabaseUpdater::newForDb( $wgDatabase, false );
+ $updater->doUpdates();
+ foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
+ call_user_func_array( array( new $maint, 'execute' ), array() );
+ }
+
chdir( "config" );
print "</pre>\n";
print "<ul><li>Finished update checks.</li>\n";
if ( $conf->DBtype == 'mysql' && version_compare( $myver, "4.1.2", "ge" ) ) {
$res = $wgDatabase->query( 'SHOW ENGINES' );
$found = false;
- while ( $row = $wgDatabase->fetchObject( $res ) ) {
+ foreach ( $res as $row ) {
if ( $row->Engine == $conf->DBengine && ( $row->Support == 'YES' || $row->Support == 'DEFAULT' ) ) {
$found = true;
break;
$id = $field;
$nolabel = ($type == "radio") || ($type == "hidden");
- if ($type == 'radio')
+ if ($type == 'radio') {
$id .= $radioCount++;
+ }
if( !$nolabel ) {
echo "<label class='column' for=\"$id\">$text</label>";