From c7d1cdddb79ca448f52acbc89711ffb3f41a7a57 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Wed, 15 Jul 2009 19:54:08 +0000 Subject: [PATCH] more isset fixes --- skins/MonoBook.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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'] ) { ?> -- 2.20.1