/**
* Set the title
- * @param Title $t The title to use
+ * @param $t Title object to use
*/
public function setTitle( $t ) {
$this->mTitle = $t;
* Make a <script> tag containing global variables
* @param $skinName string Name of the skin
* The odd calling convention is for backwards compatibility
- * @TODO @FIXME Make this not depend on $wgTitle!
+ * @todo FIXME: Make this not depend on $wgTitle!
*/
static function makeGlobalVariablesScript( $skinName ) {
if ( is_array( $skinName ) ) {
);
}
+ function uploadLink() {
+ global $wgUploadNavigationUrl;
+
+ if( $wgUploadNavigationUrl ) {
+ $title = Title::newFromText( $wgUploadNavigationUrl );
+ }
+ if( !$title ) {
+ $title = SpecialPage::getTitleFor('Upload');
+ }
+
+ return $this->link(
+ $title,
+ wfMsgHtml( 'upload' ),
+ array(),
+ array(),
+ array( 'known', 'noclasses' )
+ );
+ }
+
/* these are used extensively in SkinTemplate, but also some other places */
static function makeMainPageUrl( $urlaction = '' ) {
$title = Title::newMainPage();