* Skip additional setting of include_path in commandLine.inc (for non-Wikimedia mode)
[lhc/web/wiklou.git] / maintenance / dumpReplayLog.php
index aa1d5b9..a71c5b9 100644 (file)
@@ -1,17 +1,15 @@
 <?php
 /**
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
  */
 error_reporting(E_ALL);
 
 /** */
 require_once( "commandLine.inc" );
-require_once( 'includes/SpecialExport.php' );
 
 /** */
 function dumpReplayLog( $start ) {
-       $dbw =& wfGetDB( DB_MASTER );
+       $dbw = wfGetDB( DB_MASTER );
        $recentchanges = $dbw->tableName( 'recentchanges' );
        $result =& $dbw->safeQuery( "SELECT * FROM $recentchanges WHERE rc_timestamp >= "
                . $dbw->timestamp( $start ) . ' ORDER BY rc_timestamp');
@@ -34,7 +32,7 @@ function dumpReplayEntry( $row ) {
        case RC_EDIT:
        case RC_NEW:
                # Edit
-               $dbr =& wfGetDB( DB_MASTER );
+               $dbr = wfGetDB( DB_MASTER );
 
                $out = "  <edit>\n";
                $out .= "    <title>" . xmlsafe( $title->getPrefixedText() ) . "</title>\n";
@@ -65,7 +63,7 @@ function dumpReplayEntry( $row ) {
                $out .= "  </edit>\n";
                break;
        case RC_LOG:
-               $dbr =& wfGetDB( DB_MASTER );
+               $dbr = wfGetDB( DB_MASTER );
                $s = $dbr->selectRow( 'logging',
                        array( 'log_type', 'log_action', 'log_timestamp', 'log_user',
                                'log_namespace', 'log_title', 'log_comment' ),