Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -41,6 +41,9 @@ |
42 | 42 | # (so that record tables don't execute when run from the job-queue - looking for a better way to do this) |
43 | 43 | $wgHooks['BeforePageDisplay'][] = $this; |
44 | 44 | |
| 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 | + |
45 | 48 | # Get the current title accounting for redirect |
46 | 49 | $title = Title::newFromText( $wgRequest->getText( 'title' ) ); |
47 | 50 | if ( is_object( $title ) && $title->isRedirect() ) { |
Index: trunk/extensions/RecordAdmin/RecordAdmin.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | * @licence GNU General Public Licence 2.0 or later |
13 | 13 | */ |
14 | 14 | |
15 | | -define( 'RECORDADMIN_VERSION', '0.12.2, 2010-07-03' ); |
| 15 | +define( 'RECORDADMIN_VERSION', '0.12.3, 2010-08-21' ); |
16 | 16 | |
17 | 17 | $wgRecordAdminUseNamespaces = false; # Whether record articles should be in a namespace of the same name as their type |
18 | 18 | $wgRecordAdminCategory = 'Records'; # Category containing record types |