From: Alex Z Date: Wed, 15 Jul 2009 19:41:29 +0000 (+0000) Subject: Partial revert of r53320: X-Git-Tag: 1.31.0-rc.0~40915 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7151908309185d8f4f1fe47c20865a273b550a23;p=lhc%2Fweb%2Fwiklou.git 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 --- 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