r71385 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71384‎ | r71385 | r71386 >
Date:01:24, 21 August 2010
Author:nad
Status:deferred
Tags:
Comment:
If this is not a request for the current page, don't run record-admin queries
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin.php (modified) (history)
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -41,6 +41,9 @@
4242 # (so that record tables don't execute when run from the job-queue - looking for a better way to do this)
4343 $wgHooks['BeforePageDisplay'][] = $this;
4444
 45+ # If this is not a request for the current page, don't run record-admin queries
 46+ $this->done = ( $wgRequest->getText( 'oldid' ) > 0 );
 47+
4548 # Get the current title accounting for redirect
4649 $title = Title::newFromText( $wgRequest->getText( 'title' ) );
4750 if ( is_object( $title ) && $title->isRedirect() ) {
Index: trunk/extensions/RecordAdmin/RecordAdmin.php
@@ -11,7 +11,7 @@
1212 * @licence GNU General Public Licence 2.0 or later
1313 */
1414
15 -define( 'RECORDADMIN_VERSION', '0.12.2, 2010-07-03' );
 15+define( 'RECORDADMIN_VERSION', '0.12.3, 2010-08-21' );
1616
1717 $wgRecordAdminUseNamespaces = false; # Whether record articles should be in a namespace of the same name as their type
1818 $wgRecordAdminCategory = 'Records'; # Category containing record types

Status & tagging log