From 7b59eb2ea8b294a46d696e733691d5ef7da37b5e Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Wed, 25 Jan 2017 01:28:08 +0200 Subject: [PATCH] Remove warning suppression There are many valid use cases of the error suppression functions, but this isn't one of those. If there are some undefined indexes somewhere, that's a problem that should be fixed properly instead of warnings being suppressed in one skin. Change-Id: I88dfd3b9d94774686c168766a56afb5186684a61 --- MonoBookTemplate.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MonoBookTemplate.php b/MonoBookTemplate.php index 58453ac..97a949d 100644 --- a/MonoBookTemplate.php +++ b/MonoBookTemplate.php @@ -36,9 +36,6 @@ class MonoBookTemplate extends BaseTemplate { * outputs a formatted page. */ public function execute() { - // Suppress warnings to prevent notices about missing indexes in $this->data - wfSuppressWarnings(); - $this->html( 'headelement' ); ?>
@@ -206,7 +203,6 @@ class MonoBookTemplate extends BaseTemplate { echo Html::closeElement( 'body' ); echo Html::closeElement( 'html' ); echo "\n"; - wfRestoreWarnings(); } // end of execute() method /*************************************************************************************************/