Advise users when updates for a query page have been disabled using $wgDisableQueryPa...
authorRob Church <robchurch@users.mediawiki.org>
Wed, 3 Jan 2007 23:42:28 +0000 (23:42 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 3 Jan 2007 23:42:28 +0000 (23:42 +0000)
RELEASE-NOTES
includes/QueryPage.php
languages/messages/MessagesEn.php

index d18d38d..29cbecb 100644 (file)
@@ -457,7 +457,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Attempt to detect redirect loops for the canonical title redirect, and
   give some hints to the poor confused administrator.
 * Introduce new flag 'R' - raw output for language variant escape tags
-
+* Advise users when updates for a query page have been disabled using
+  $wgDisableQueryPageUpdate
 
 == Languages updated ==
 
index e4f5551..ff6355e 100644 (file)
@@ -312,6 +312,14 @@ class QueryPage {
                                }
        
                                $wgOut->addWikiText( $cacheNotice );
+                               
+                               # If updates on this page have been disabled, let the user know
+                               # that the data set won't be refreshed for now
+                               global $wgDisableQueryPageUpdate;
+                               if( is_array( $wgDisableQueryPageUpdate ) && in_array( $this->getName(), $wgDisableQueryPageUpdate ) ) {
+                                       $wgOut->addWikiText( wfMsg( 'querypage-no-updates' ) );
+                               }
+                               
                        }
 
                }
index ff1852d..d5653c4 100644 (file)
@@ -764,6 +764,7 @@ Please report this to an administrator, making note of the URL.',
 'perfdisabledsub' => 'Here is a saved copy from $1:', # obsolete?
 'perfcached' => 'The following data is cached and may not be up to date.',
 'perfcachedts' => 'The following data is cached, and was last updated $1.',
+'querypage-no-updates' => 'Updates for this page are currently disabled. Data here will not presently be refreshed.',
 'wrong_wfQuery_params' => 'Incorrect parameters to wfQuery()<br />
 Function: $1<br />
 Query: $2',