Merge "Add wfSuppressWarnings(); to CologneBlue."
authorReedy <reedy@wikimedia.org>
Sun, 21 Oct 2012 15:51:34 +0000 (15:51 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 21 Oct 2012 15:51:34 +0000 (15:51 +0000)
skins/CologneBlue.php

index 22ec0f9..edf8695 100644 (file)
@@ -55,6 +55,8 @@ class SkinCologneBlue extends SkinTemplate {
 
 class CologneBlueTemplate extends BaseTemplate {
        function execute() {
+               // Suppress warnings to prevent notices about missing indexes in $this->data
+               wfSuppressWarnings();
                $this->html( 'headelement' );
                echo $this->beforeContent();
                $this->html( 'bodytext' );
@@ -63,6 +65,7 @@ class CologneBlueTemplate extends BaseTemplate {
                $this->html( 'dataAfterContent' );
                $this->printTrail();
                echo "\n</body></html>";
+               wfRestoreWarnings();
        }
 
        /**