From 7151908309185d8f4f1fe47c20865a273b550a23 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Wed, 15 Jul 2009 19:41:29 +0000 Subject: [PATCH] Partial revert of r53320: isset() will return true even if its set to an empty array or false, so this broke more than it fixed, putting user contribs/logs links on articles, empty language sidebars, etc. I believe $pagecss was the only thing causing notices --- skins/MonoBook.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 195c40433b..7de22315b1 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -48,10 +48,10 @@ class SkinMonoBook extends SkinTemplate { //@@todo we can move this to the parent once we update all skins - if( isset($this->pagecss) ) + if( isset( $this->pagecss ) ) $out->addInlineStyle( $this->pagecss ); - if( isset($this->usercss) ) + if( isset( $this->usercss) ) $out->addInlineStyle( $this->usercss ); } @@ -60,13 +60,13 @@ class SkinMonoBook extends SkinTemplate { $out->addScriptFile( 'wikibits.js' ); //@@todo can move to parent once we update all skins (to not include things twice - if( isset($this->jsvarurl) ) + if( isset( $this->jsvarurl ) ) $out->addScriptFile( $this->jsvarurl ); - if( isset($this->userjs) ) + if( isset( $this->userjs ) ) $out->addScriptFile( $this->userjs ); - if( isset($this->userjsprev) ) + if( isset( $this->userjsprev ) ) $out->addInlineScript( $this->userjsprev ); } } @@ -273,23 +273,23 @@ HTML