Add wfSuppressWarnings(); to CologneBlue.
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Mon, 15 Oct 2012 01:30:39 +0000 (18:30 -0700)
committerDaniel Friesen <daniel@nadir-seen-fire.com>
Mon, 15 Oct 2012 01:30:39 +0000 (18:30 -0700)
Change-Id: Ie5754f854ca4a59fecb42fa4b32859e6b9a0db7c

skins/CologneBlue.php

index 473ee2b..984ca63 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();
        }