r54666 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54665‎ | r54666 | r54667 >
Date:15:27, 9 August 2009
Author:demon
Status:ok
Tags:
Comment:
patchPath not patchPatch
Modified paths:
  • /trunk/phase3/includes/db/Database.php (modified) (history)
  • /trunk/phase3/maintenance/patchSql.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/patchSql.php
@@ -39,8 +39,8 @@
4040 foreach( $this->mArgs as $arg ) {
4141 $files = array(
4242 $arg,
43 - DatabaseBase::patchPatch( $arg ),
44 - DatabaseBase::patchPatch( "patch-$arg.sql" ),
 43+ DatabaseBase::patchPath( $arg ),
 44+ DatabaseBase::patchPath( "patch-$arg.sql" ),
4545 );
4646 foreach( $files as $file ) {
4747 if( file_exists( $file ) ) {
Index: trunk/phase3/includes/db/Database.php
@@ -2083,7 +2083,7 @@
20842084 * @param $patch String The name of the patch, like patch-something.sql
20852085 * @return String Full path to patch file
20862086 */
2087 - public static function patchPatch( $patch ) {
 2087+ public static function patchPath( $patch ) {
20882088 global $wgDBtype, $IP;
20892089 if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$name" ) ) {
20902090 return "$IP/maintenance/$wgDBtype/archives/$name";

Status & tagging log