patchPath not patchPatch
This commit is contained in:
parent
a82c01a4b2
commit
1e87cd3a7f
2 changed files with 3 additions and 3 deletions
|
|
@ -2083,7 +2083,7 @@ abstract class DatabaseBase {
|
|||
* @param $patch String The name of the patch, like patch-something.sql
|
||||
* @return String Full path to patch file
|
||||
*/
|
||||
public static function patchPatch( $patch ) {
|
||||
public static function patchPath( $patch ) {
|
||||
global $wgDBtype, $IP;
|
||||
if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$name" ) ) {
|
||||
return "$IP/maintenance/$wgDBtype/archives/$name";
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ class PatchSql extends Maintenance {
|
|||
foreach( $this->mArgs as $arg ) {
|
||||
$files = array(
|
||||
$arg,
|
||||
DatabaseBase::patchPatch( $arg ),
|
||||
DatabaseBase::patchPatch( "patch-$arg.sql" ),
|
||||
DatabaseBase::patchPath( $arg ),
|
||||
DatabaseBase::patchPath( "patch-$arg.sql" ),
|
||||
);
|
||||
foreach( $files as $file ) {
|
||||
if( file_exists( $file ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue