From: Michael Dale Date: Wed, 15 Jul 2009 19:54:08 +0000 (+0000) Subject: more isset fixes X-Git-Tag: 1.31.0-rc.0~40914 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=c7d1cdddb79ca448f52acbc89711ffb3f41a7a57;p=lhc%2Fweb%2Fwiklou.git more isset fixes --- diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 7de22315b1..2c8c157605 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 ) && $this->pagecss) $out->addInlineStyle( $this->pagecss ); - if( isset( $this->usercss) ) + if( isset( $this->usercss ) && $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 ) && $this->jsvarurl) $out->addScriptFile( $this->jsvarurl ); - if( isset( $this->userjs ) ) + if( isset( $this->userjs ) && $this->userjs) $out->addScriptFile( $this->userjs ); - if( isset( $this->userjsprev ) ) + if( isset( $this->userjsprev ) && $this->userjsprev) $out->addInlineScript( $this->userjsprev ); } } @@ -252,7 +252,7 @@ HTML
skin->tooltipAndAccesskey('search'); - if( isset( $this->data['search'] ) ) { + if( isset( $this->data['search'] ) && $this->data['search'] ) { ?> value="text('search') ?>" /> skin->tooltipAndAccesskey( 'search-go' ); ?> />  skin->tooltipAndAccesskey( 'search-fulltext' ); ?> /> @@ -284,7 +284,7 @@ HTML ?>"skin->tooltipAndAccesskey('t-recentchangeslinked') ?>>msg('recentchangeslinked-toolbox') ?> data['nav_urls']['trackbacklink'])) { ?> + if( isset( $this->data['nav_urls']['trackbacklink'] ) && $this->data['nav_urls']['trackbacklink'] ) { ?>