Index: trunk/phase3/maintenance/patchSql.php |
— | — | @@ -39,8 +39,8 @@ |
40 | 40 | foreach( $this->mArgs as $arg ) { |
41 | 41 | $files = array( |
42 | 42 | $arg, |
43 | | - DatabaseBase::patchPatch( $arg ), |
44 | | - DatabaseBase::patchPatch( "patch-$arg.sql" ), |
| 43 | + DatabaseBase::patchPath( $arg ), |
| 44 | + DatabaseBase::patchPath( "patch-$arg.sql" ), |
45 | 45 | ); |
46 | 46 | foreach( $files as $file ) { |
47 | 47 | if( file_exists( $file ) ) { |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2083,7 +2083,7 @@ |
2084 | 2084 | * @param $patch String The name of the patch, like patch-something.sql |
2085 | 2085 | * @return String Full path to patch file |
2086 | 2086 | */ |
2087 | | - public static function patchPatch( $patch ) { |
| 2087 | + public static function patchPath( $patch ) { |
2088 | 2088 | global $wgDBtype, $IP; |
2089 | 2089 | if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$name" ) ) { |
2090 | 2090 | return "$IP/maintenance/$wgDBtype/archives/$name"; |