* @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";
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 ) ) {