Merge "SpecialUnwatchedpages: Ajaxify watch links"
[lhc/web/wiklou.git] / maintenance / storage / resolveStubs.php
index 414eab8..dff5cb8 100644 (file)
@@ -27,7 +27,7 @@ define( 'REPORTING_INTERVAL', 100 );
 if ( !defined( 'MEDIAWIKI' ) ) {
        $optionsWithArgs = array( 'm' );
 
-       require_once( __DIR__ . '/../commandLine.inc' );
+       require_once __DIR__ . '/../commandLine.inc';
 
        resolveStubs();
 }
@@ -77,12 +77,18 @@ function resolveStub( $id, $stubText, $flags ) {
 
        if ( strtolower( get_class( $stub ) ) !== 'historyblobstub' ) {
                print "Error found object of class " . get_class( $stub ) . ", expecting historyblobstub\n";
+
                return;
        }
 
        # Get the (maybe) external row
-       $externalRow = $dbr->selectRow( 'text', array( 'old_text' ),
-               array( 'old_id' => $stub->mOldId, 'old_flags' . $dbr->buildLike( $dbr->anyString(), 'external', $dbr->anyString() ) ),
+       $externalRow = $dbr->selectRow(
+               'text',
+               array( 'old_text' ),
+               array(
+                       'old_id' => $stub->mOldId,
+                       'old_flags' . $dbr->buildLike( $dbr->anyString(), 'external', $dbr->anyString() )
+               ),
                $fname
        );