Wrap message querypage-no-updates into a class
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 19 May 2012 17:48:13 +0000 (19:48 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 19 May 2012 17:48:13 +0000 (19:48 +0200)
this allows easy styling of that message

Change-Id: Ief78cb598613e705dace65e4b8e36dcb544c6f4b

includes/QueryPage.php

index 1c42b1c..44e9953 100644 (file)
@@ -508,7 +508,7 @@ abstract class QueryPage extends SpecialPage {
                                # If updates on this page have been disabled, let the user know
                                # that the data set won't be refreshed for now
                                if ( is_array( $wgDisableQueryPageUpdate ) && in_array( $this->getName(), $wgDisableQueryPageUpdate ) ) {
-                                       $out->addWikiMsg( 'querypage-no-updates' );
+                                       $out->wrapWikiMsg( "<div class=\"mw-querypage-no-updates\">\n$1\n</div>", 'querypage-no-updates' );
                                }
                        }
                }