diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /maintenance/populateParentId.php | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'maintenance/populateParentId.php')
-rw-r--r-- | maintenance/populateParentId.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/maintenance/populateParentId.php b/maintenance/populateParentId.php index 14f158c9..e81d4ffb 100644 --- a/maintenance/populateParentId.php +++ b/maintenance/populateParentId.php @@ -19,11 +19,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script that makes the required database updates for rev_parent_id + * to be of any use. + * + * @ingroup Maintenance + */ class PopulateParentId extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); @@ -61,7 +68,7 @@ class PopulateParentId extends LoggedUpdateMaintenance { $cond = "rev_id BETWEEN $blockStart AND $blockEnd"; $res = $db->select( 'revision', array( 'rev_id', 'rev_page', 'rev_timestamp', 'rev_parent_id' ), - $cond, __METHOD__ ); + array( $cond, 'rev_parent_id' => null ), __METHOD__ ); # Go through and update rev_parent_id from these rows. # Assume that the previous revision of the title was # the original previous revision of the title when the |