Suppress warnings
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 28 Mar 2005 08:15:09 +0000 (08:15 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 28 Mar 2005 08:15:09 +0000 (08:15 +0000)
skins/MonoBook.php

index 9b808ca..f0c4f30 100644 (file)
@@ -47,6 +47,9 @@ class MonoBookTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
+               // Suppress warnings to prevent notices about missing indexes in $this->data
+               wfSuppressWarnings();
+
 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
   <head>
@@ -204,6 +207,7 @@ class MonoBookTemplate extends QuickTemplate {
   </body>
 </html>
 <?php
+       wfRestoreWarnings();
        }
 }
-?>
\ No newline at end of file
+?>