<?php
if ( ! defined( 'MEDIAWIKI' ) )
- die();
+ die( -1 );
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
$personal_urls['logout'] = array(
'text' => wfMsg('userlogout'),
'href' => $this->makeSpecialUrl( 'Userlogout',
- $wgTitle->getNamespace() === NS_SPECIAL && $wgTitle->getText() === 'Preferences' ? '' : "returnto={$this->thisurl}"
+ $wgTitle->getNamespace() === NS_SPECIAL && $wgTitle->getText() === 'Preferences' ? '' : "returnto={$this->thisurl}"
)
);
} else {
$classes[] = 'new';
$query = 'action=edit';
}
-
+
$text = wfMsg( $message );
if ( $text == "<$message>" ) {
- $text = html_entity_decode($text);
+ $text = html_entity_decode($text);
}
-
+
return array(
'class' => implode( ' ', $classes ),
'text' => $text,
);
}
}
-
+
wfRunHooks( 'SkinTemplateTabs', array( &$this , &$content_actions ) ) ;
} else {
/* show special page tab */
}
wfRunHooks( 'SkinTemplateContentActions', array( &$content_actions ) );
-
+
wfProfileOut( $fname );
return $content_actions;
}
$diff = $wgRequest->getVal( 'diff' );
$nav_urls = array();
- $nav_urls['mainpage'] = array('href' => $this->makeI18nUrl('mainpage'));
- $nav_urls['randompage'] = array('href' => $this->makeSpecialUrl('Random'));
- $nav_urls['recentchanges'] = array('href' => $this->makeSpecialUrl('Recentchanges'));
- $nav_urls['currentevents'] = (wfMsgForContent('currentevents') != '-') ? array('href' => $this->makeI18nUrl('currentevents')) : false;
- $nav_urls['portal'] = (wfMsgForContent('portal') != '-') ? array('href' => $this->makeI18nUrl('portal-url')) : false;
- $nav_urls['bugreports'] = array('href' => $this->makeI18nUrl('bugreportspage'));
- // $nav_urls['sitesupport'] = array('href' => $this->makeI18nUrl('sitesupportpage'));
- $nav_urls['sitesupport'] = array('href' => $wgSiteSupportPage);
- $nav_urls['help'] = array('href' => $this->makeI18nUrl('helppage'));
+ $nav_urls['mainpage'] = array('href' => $this->makeI18nUrl('mainpage'));
if( $wgEnableUploads ) {
if ($wgUploadNavigationUrl) {
$nav_urls['upload'] = array('href' => $wgUploadNavigationUrl );
'href' => ''
);
} else {
- if ( !( $revid == 0 ) )
+ if ( !( $revid == 0 ) )
$nav_urls['permalink'] = array(
'text' => wfMsg( 'permalink' ),
'href' => $wgTitle->getLocalURL( "oldid=$revid" )
);
}
-
+
wfRunHooks( 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink', array( &$this, &$nav_urls, &$oldid, &$revid ) );
}
# If we use the site's dynamic CSS, throw that in, too
if ( $wgUseSiteCss ) {
- $query = "action=raw&ctype=text/css&smaxage=$wgSquidMaxage";
+ $query = "action=raw&ctype=text/css&smaxage=$wgSquidMaxage";
$sitecss .= '@import "' . $this->makeNSUrl('Common.css', $query, NS_MEDIAWIKI) . '";' . "\n";
- $sitecss .= '@import "' . $this->makeNSUrl(ucfirst($this->skinname) . '.css', $query, NS_MEDIAWIKI) . '";' . "\n";
+ $sitecss .= '@import "' . $this->makeNSUrl(ucfirst($this->skinname) . '.css', $query, NS_MEDIAWIKI) . '";' . "\n";
$sitecss .= '@import "' . $this->makeUrl('-','action=raw&gen=css' . $siteargs) . '";' . "\n";
}
$fname = 'SkinTemplate::setupPageCss';
wfProfileIn( $fname );
$out = false;
- wfRunHooks( 'SkinTemplateSetupPageCss', array( &$out, $this->mTitle->isProtected() ) );
+ wfRunHooks( 'SkinTemplateSetupPageCss', array( &$out ) );
+
wfProfileOut( $fname );
return $out;
}