Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -48,10 +48,10 @@ |
49 | 49 | |
50 | 50 | |
51 | 51 | //@@todo we can move this to the parent once we update all skins |
52 | | - if( $this->pagecss ) |
| 52 | + if( isset($this->pagecss) ) |
53 | 53 | $out->addInlineStyle( $this->pagecss ); |
54 | 54 | |
55 | | - if( $this->usercss ) |
| 55 | + if( isset($this->usercss) ) |
56 | 56 | $out->addInlineStyle( $this->usercss ); |
57 | 57 | |
58 | 58 | } |
— | — | @@ -60,13 +60,13 @@ |
61 | 61 | $out->addScriptFile( 'wikibits.js' ); |
62 | 62 | |
63 | 63 | //@@todo can move to parent once we update all skins (to not include things twice |
64 | | - if( $this->jsvarurl ) |
| 64 | + if( isset($this->jsvarurl) ) |
65 | 65 | $out->addScriptFile( $this->jsvarurl ); |
66 | 66 | |
67 | | - if( $this->userjs ) |
| 67 | + if( isset($this->userjs) ) |
68 | 68 | $out->addScriptFile( $this->userjs ); |
69 | 69 | |
70 | | - if( $this->userjsprev ) |
| 70 | + if( isset($this->userjsprev) ) |
71 | 71 | $out->addInlineScript( $this->userjsprev ); |
72 | 72 | } |
73 | 73 | } |
— | — | @@ -273,23 +273,23 @@ |
274 | 274 | <div class="pBody"> |
275 | 275 | <ul> |
276 | 276 | <?php |
277 | | - if($this->data['notspecialpage']) { ?> |
| 277 | + if( isset($this->data['notspecialpage']) ) { ?> |
278 | 278 | <li id="t-whatlinkshere"><a href="<?php |
279 | 279 | echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href']) |
280 | 280 | ?>"<?php echo $this->skin->tooltipAndAccesskey('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></li> |
281 | 281 | <?php |
282 | | - if( $this->data['nav_urls']['recentchangeslinked'] ) { ?> |
| 282 | + if( isset($this->data['nav_urls']['recentchangeslinked']) ) { ?> |
283 | 283 | <li id="t-recentchangeslinked"><a href="<?php |
284 | 284 | echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href']) |
285 | 285 | ?>"<?php echo $this->skin->tooltipAndAccesskey('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked-toolbox') ?></a></li> |
286 | 286 | <?php } |
287 | 287 | } |
288 | | - if(isset($this->data['nav_urls']['trackbacklink'])) { ?> |
| 288 | + if( isset($this->data['nav_urls']['trackbacklink'])) { ?> |
289 | 289 | <li id="t-trackbacklink"><a href="<?php |
290 | 290 | echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href']) |
291 | 291 | ?>"<?php echo $this->skin->tooltipAndAccesskey('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></li> |
292 | 292 | <?php } |
293 | | - if($this->data['feeds']) { ?> |
| 293 | + if( isset($this->data['feeds']) ) { ?> |
294 | 294 | <li id="feedlinks"><?php foreach($this->data['feeds'] as $key => $feed) { |
295 | 295 | ?><a id="<?php echo Sanitizer::escapeId( "feed-$key" ) ?>" href="<?php |
296 | 296 | echo htmlspecialchars($feed['href']) ?>" rel="alternate" type="application/<?php echo $key ?>+xml" class="feedlink"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a> |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | |
300 | 300 | foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) { |
301 | 301 | |
302 | | - if($this->data['nav_urls'][$special]) { |
| 302 | + if( isset( $this->data['nav_urls'][$special]) ) { |
303 | 303 | ?><li id="t-<?php echo $special ?>"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) |
304 | 304 | ?>"<?php echo $this->skin->tooltipAndAccesskey('t-'.$special) ?>><?php $this->msg($special) ?></a></li> |
305 | 305 | <?php } |
— | — | @@ -327,7 +327,7 @@ |
328 | 328 | |
329 | 329 | /*************************************************************************************************/ |
330 | 330 | function languageBox() { |
331 | | - if( $this->data['language_urls'] ) { |
| 331 | + if( isset( $this->data['language_urls']) ) { |
332 | 332 | ?> |
333 | 333 | <div id="p-lang" class="portlet"> |
334 | 334 | <h5 <?php $this->html('userlangattributes') ?>><?php $this->msg('otherlanguages') ?></h5> |