if ($text != '-') {
$dest = wfMsgForContent( $link['href'] );
wfProfileIn( "$fname-{$link['text']}2" );
- $result[] = array(
- 'text' => $text,
- 'href' => $this->makeInternalOrExternalUrl( $dest ),
- 'id' => 'n-'.$link['text']
- );
+ $result[] = array(
+ 'text' => $text,
+ 'href' => $this->makeInternalOrExternalUrl( $dest ),
+ 'id' => 'n-'.$link['text']
+ );
wfProfileOut( "$fname-{$link['text']}2" );
}
wfProfileOut( "$fname-{$link['text']}" );
$nav_urls['sitesupport'] = array('href' => $wgSiteSupportPage);
$nav_urls['help'] = array('href' => $this->makeI18nUrl('helppage'));
if( $wgEnableUploads ) {
- if (isset($wgUploadNavigationUrl)) {
+ if ($wgUploadNavigationUrl) {
$nav_urls['upload'] = array('href' => $wgUploadNavigationUrl );
} else {
$nav_urls['upload'] = array('href' => $this->makeSpecialUrl('Upload'));