From: Daniel Friesen Date: Mon, 15 Oct 2012 01:30:39 +0000 (-0700) Subject: Add wfSuppressWarnings(); to CologneBlue. X-Git-Tag: 1.31.0-rc.0~21924^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=a3117f702015827b8ea14c45781529cd8dd602ae;p=lhc%2Fweb%2Fwiklou.git Add wfSuppressWarnings(); to CologneBlue. Change-Id: Ie5754f854ca4a59fecb42fa4b32859e6b9a0db7c --- diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index 473ee2b441..984ca63b37 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -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"; + wfRestoreWarnings(); }