* Notice: Undefined variable: name in includes/db/Database.php on lines 2209 and 2212
* Fatal error: Call to undefined method DatabaseMysql::fileSource() in maintenance/patchSql.php on line 48
*/
public static function patchPath( $patch ) {
global $wgDBtype, $IP;
- if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$name" ) ) {
- return "$IP/maintenance/$wgDBtype/archives/$name";
+ if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$patch" ) ) {
+ return "$IP/maintenance/$wgDBtype/archives/$patch";
} else {
- return "$IP/maintenance/archives/$name";
+ return "$IP/maintenance/archives/$patch";
}
}
foreach( $files as $file ) {
if( file_exists( $file ) ) {
$this->output( "$file ...\n" );
- $dbw->fileSource( $file );
+ $dbw->sourceFile( $file );
continue 2;
}
}