Merge "Make backupTestPass.inc require_once by itself its dependence on backup.inc...
authorBrion VIBBER <brion@wikimedia.org>
Tue, 8 May 2012 20:24:27 +0000 (20:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 8 May 2012 20:24:27 +0000 (20:24 +0000)
1  2 
maintenance/backupTextPass.inc

@@@ -24,6 -24,7 +24,7 @@@
   * @ingroup Maintenance
   */
  
+ require_once( dirname( __FILE__ ) . '/backup.inc' );
  
  /**
   * @ingroup Maintenance
@@@ -430,8 -431,7 +431,8 @@@ class TextPassDumper extends BackupDump
                                if ( $text === false && isset( $this->prefetch ) && $prefetchNotTried ) {
                                        $prefetchNotTried = false;
                                        $tryIsPrefetch = true;
 -                                      $text = $this->prefetch->prefetch( $this->thisPage, $this->thisRev );
 +                                      $text = $this->prefetch->prefetch( intval( $this->thisPage ),
 +                                              intval( $this->thisRev ) );
                                        if ( $text === null ) {
                                                $text = false;
                                        }