From: Antoine Musso Date: Sun, 4 Dec 2005 18:27:59 +0000 (+0000) Subject: Clean up unused globals! X-Git-Tag: 1.6.0~1030 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=2ca68a256dae9a27b3b79f950eb7ef69c337fe60;p=lhc%2Fweb%2Fwiklou.git Clean up unused globals! --- diff --git a/includes/Article.php b/includes/Article.php index 5b6c6b9763..5d86ccf025 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -676,9 +676,9 @@ class Article { * the given title. */ function view() { - global $wgUser, $wgOut, $wgRequest, $wgOnlySysopsCanPatrol, $wgLang, $wgContLang; - global $wgLinkCache, $IP, $wgEnableParserCache, $wgStylePath, $wgUseRCPatrol; - global $wgEnotif, $wgParser, $wgParserCache, $wgUseTrackbacks; + global $wgUser, $wgOut, $wgRequest, $wgOnlySysopsCanPatrol, $wgContLang; + global $wgEnableParserCache, $wgStylePath, $wgUseRCPatrol, $wgParser; + global $wgParserCache, $wgUseTrackbacks; $sk = $wgUser->getSkin(); $fname = 'Article::view'; @@ -1077,8 +1077,7 @@ class Article { * @private */ function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false, $comment=false ) { - global $wgOut, $wgUser; - global $wgUseSquid, $wgDeferredUpdateList, $wgInternalServer; + global $wgOut, $wgUser, $wgUseSquid; $fname = 'Article::insertNewArticle'; wfProfileIn( $fname ); @@ -1263,9 +1262,8 @@ class Article { * first set $wgUser, and clean up $wgDeferredUpdates after each edit. */ function updateArticle( $text, $summary, $minor, $watchthis, $forceBot = false, $sectionanchor = '' ) { - global $wgOut, $wgUser; - global $wgDBtransactions, $wgMwRedir; - global $wgUseSquid, $wgInternalServer, $wgPostCommitUpdateList, $wgUseFileCache; + global $wgOut, $wgUser, $wgDBtransactions, $wgMwRedir, $wgUseSquid; + global $wgPostCommitUpdateList, $wgUseFileCache; $fname = 'Article::updateArticle'; wfProfileIn( $fname ); @@ -1747,7 +1745,7 @@ class Article { * UI entry point for page deletion */ function delete() { - global $wgUser, $wgOut, $wgMessageCache, $wgRequest; + global $wgUser, $wgOut, $wgRequest; $fname = 'Article::delete'; $confirm = $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); @@ -1935,9 +1933,8 @@ class Article { * Returns success */ function doDeleteArticle( $reason ) { - global $wgUser; - global $wgUseSquid, $wgDeferredUpdateList, $wgInternalServer, $wgPostCommitUpdateList; - global $wgUseTrackbacks; + global $wgUser, $wgUseSquid, $wgDeferredUpdateList; + global $wgPostCommitUpdateList, $wgUseTrackbacks; $fname = 'Article::doDeleteArticle'; wfDebug( $fname."\n" ); @@ -2180,8 +2177,7 @@ class Article { * @param string $text */ function editUpdates( $text, $summary, $minoredit, $timestamp_of_pagechange) { - global $wgDeferredUpdateList, $wgDBname, $wgMemc; - global $wgMessageCache, $wgUser, $wgUseEnotif; + global $wgDeferredUpdateList, $wgMessageCache, $wgUser, $wgUseEnotif; if ( wfRunHooks( 'ArticleEditUpdatesDeleteFromRecentchanges', array( &$this ) ) ) { wfSeedRandom(); diff --git a/includes/CacheManager.php b/includes/CacheManager.php index 66121de6f1..9f8abc1881 100644 --- a/includes/CacheManager.php +++ b/includes/CacheManager.php @@ -32,7 +32,7 @@ class CacheManager { } function fileCacheName() { - global $wgFileCacheDirectory, $wgContLang; + global $wgFileCacheDirectory; if( !$this->mFileCache ) { $key = $this->mTitle->getPrefixedDbkey(); $hash = md5( $key ); diff --git a/includes/ChangesList.php b/includes/ChangesList.php index ecf261f78b..9e5e4b1282 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -302,8 +302,8 @@ class OldChangesList extends ChangesList { * Format a line using the old system (aka without any javascript). */ function recentChangesLine( &$rc, $watched = false ) { - global $wgTitle, $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol, - $wgOnlySysopsCanPatrol, $wgSysopUserBans; + global $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol; + global $wgOnlySysopsCanPatrol, $wgSysopUserBans; $fname = 'ChangesList::recentChangesLineOld'; wfProfileIn( $fname ); @@ -368,8 +368,8 @@ class EnhancedChangesList extends ChangesList { * Format a line for enhanced recentchange (aka with javascript and block of lines). */ function recentChangesLine( &$baseRC, $watched = false ) { - global $wgTitle, $wgLang, $wgContLang, $wgUser, - $wgUseRCPatrol, $wgOnlySysopsCanPatrol, $wgSysopUserBans; + global $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol; + global $wgOnlySysopsCanPatrol, $wgSysopUserBans; # Create a specialised object $rc = RCCacheEntry::newFromParent( $baseRC ) ; diff --git a/includes/DatabaseOracle.php b/includes/DatabaseOracle.php index 5aa0aa5f97..c5cb1420e1 100644 --- a/includes/DatabaseOracle.php +++ b/includes/DatabaseOracle.php @@ -279,14 +279,14 @@ class DatabaseOracle extends Database { return true; } - function startTimer( $timeout ) - { - global $IP; + /** @todo FIXME */ + function startTimer( $timeout ) { wfDebugDieBacktrace( 'Database::startTimer() error : mysql_thread_id() not implemented for postgre' ); /*$tid = mysql_thread_id( $this->mConn ); exec( "php $IP/killthread.php $timeout $tid &>/dev/null &" );*/ } + /** */ function tableName($name, $forddl = false) { # First run any transformations from the parent object $name = parent::tableName( $name ); diff --git a/includes/DatabasePostgreSQL.php b/includes/DatabasePostgreSQL.php index 7d32166c24..bb88dcb4a7 100644 --- a/includes/DatabasePostgreSQL.php +++ b/includes/DatabasePostgreSQL.php @@ -227,9 +227,8 @@ class DatabasePgsql extends Database { return $retVal; } - function startTimer( $timeout ) - { - global $IP; + /** @todo FIXME */ + function startTimer( $timeout ) { wfDebugDieBacktrace( 'Database::startTimer() error : mysql_thread_id() not implemented for postgre' ); /*$tid = mysql_thread_id( $this->mConn ); exec( "php $IP/killthread.php $timeout $tid &>/dev/null &" );*/ diff --git a/includes/DateFormatter.php b/includes/DateFormatter.php index 7e1e4b683f..0b92de1608 100755 --- a/includes/DateFormatter.php +++ b/includes/DateFormatter.php @@ -37,7 +37,7 @@ class DateFormatter * @todo document */ function DateFormatter() { - global $wgContLang, $wgInputEncoding; + global $wgContLang; $this->monthNames = $this->getMonthRegex(); for ( $i=1; $i<=12; $i++ ) { diff --git a/includes/EditPage.php b/includes/EditPage.php index 4e393802c9..8c73af6ea9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1037,7 +1037,7 @@ END * @todo document */ function getPreviewText() { - global $wgOut, $wgUser, $wgTitle, $wgParser, $wgAllowDiffPreview, $wgEnableDiffPreviewPreference; + global $wgOut, $wgUser, $wgTitle, $wgParser; $fname = 'EditPage::getPreviewText'; wfProfileIn( $fname ); @@ -1243,7 +1243,7 @@ END * The necessary JavaScript code can be found in style/wikibits.js. */ function getEditToolbar() { - global $wgStylePath, $wgLang, $wgMimeType, $wgJsMimeType; + global $wgStylePath, $wgLang, $wgJsMimeType; /** * toolarray an array of arrays which each include the filename of diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index e3effe6b17..74d2c9dcc9 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -31,8 +31,7 @@ class ExternalEdit { } function edit() { - global $wgUser, $wgOut, $wgScript, $wgScriptPath, $wgServer, - $wgLang; + global $wgOut, $wgScript, $wgScriptPath, $wgServer, $wgLang; $wgOut->disable(); $name=$this->mTitle->getText(); $pos=strrpos($name,".")+1; diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 57bd13281c..200f4bdad7 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -212,7 +212,7 @@ function wfLogDBError( $text ) { */ function logProfilingData() { global $wgRequestTime, $wgDebugLogFile, $wgDebugRawPage, $wgRequest; - global $wgProfiling, $wgProfileStack, $wgProfileLimit, $wgUser; + global $wgProfiling, $wgUser; $now = wfTime(); list( $usec, $sec ) = explode( ' ', $wgRequestTime ); @@ -389,9 +389,7 @@ function wfMsgReal( $key, $args, $useDB, $forContent=false, $transform = true ) * @access private */ function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { - global $wgParser, $wgMsgParserOptions; - global $wgContLang, $wgLanguageCode; - global $wgMessageCache, $wgLang; + global $wgParser, $wgMsgParserOptions, $wgContLang, $wgMessageCache, $wgLang; if ( is_object( $wgMessageCache ) ) $transstat = $wgMessageCache->getTransform(); diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index c0df2e92d4..87e2a86792 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -9,8 +9,7 @@ * if $timeout is 'default', $wgHTTPTimeout is used */ function wfGetHTTP( $url, $timeout = 'default' ) { - global $wgServer, $wgHTTPTimeout, $wgHTTPProxy; - + global $wgHTTPTimeout, $wgHTTPProxy; # Use curl if available if ( function_exists( 'curl_init' ) ) { diff --git a/includes/Image.php b/includes/Image.php index 372f86e122..cd389da857 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1269,7 +1269,6 @@ class Image */ function getFullPath( $fromSharedRepository = false ) { global $wgUploadDirectory, $wgSharedUploadDirectory; - global $wgHashedUploadDirectory, $wgHashedSharedUploadDirectory; $dir = $fromSharedRepository ? $wgSharedUploadDirectory : $wgUploadDirectory; @@ -1297,8 +1296,7 @@ class Image * Record an image upload in the upload log and the image table */ function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '', $watch = false ) { - global $wgUser, $wgLang, $wgTitle, $wgDeferredUpdateList; - global $wgUseCopyrightUpload, $wgUseSquid, $wgPostCommitUpdateList; + global $wgUser, $wgUseCopyrightUpload, $wgUseSquid, $wgPostCommitUpdateList; $fname = 'Image::recordUpload'; $dbw =& wfGetDB( DB_MASTER ); diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 28f076a39c..c33a3f2596 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -88,7 +88,7 @@ class ImageGallery * */ function toHTML() { - global $wgLang, $wgContLang, $wgUser; + global $wgLang, $wgUser; $sk = $wgUser->getSkin(); diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 7e6476914f..5d4274d3ef 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -27,7 +27,7 @@ class ImagePage extends Article { } function view() { - global $wgUseExternalEditor, $wgOut, $wgShowEXIF; + global $wgOut, $wgShowEXIF; $this->img = new Image( $this->mTitle ); @@ -160,11 +160,9 @@ class ImagePage extends Article { return Article::getContent( $noredir ); } - function openShowImage() - { - global $wgOut, $wgUser, $wgImageLimits, $wgRequest, - $wgUseImageResize, $wgRepositoryBaseUrl, - $wgUseExternalEditor, $wgServer, $wgFetchCommonsDescriptions; + function openShowImage() { + global $wgOut, $wgUser, $wgImageLimits, $wgRequest, $wgUseImageResize; + $full_url = $this->img->getURL(); $anchoropen = ''; $anchorclose = ''; @@ -470,10 +468,10 @@ END return $this->confirmDelete( $q, $wgRequest->getText( 'wpReason' ) ); } - function doDelete() - { - global $wgOut, $wgUser, $wgContLang, $wgRequest; - global $wgUseSquid, $wgInternalServer, $wgPostCommitUpdateList; + function doDelete() { + global $wgOut, $wgUser, $wgRequest, $wgUseSquid, $wgInternalServer; + global $wgPostCommitUpdateList; + $fname = 'ImagePage::doDelete'; $reason = $wgRequest->getVal( 'wpReason' ); @@ -590,10 +588,8 @@ END } } - function revert() - { - global $wgOut, $wgRequest, $wgUser; - global $wgUseSquid, $wgInternalServer, $wgDeferredUpdateList; + function revert() { + global $wgOut, $wgRequest, $wgUser, $wgUseSquid, $wgInternalServer; $oldimage = $wgRequest->getText( 'oldimage' ); if ( strlen( $oldimage ) < 16 ) { @@ -688,7 +684,7 @@ class ImageHistoryList { } function imageHistoryLine( $iscur, $timestamp, $img, $user, $usertext, $size, $description, $width, $height ) { - global $wgUser, $wgLang, $wgContLang, $wgTitle; + global $wgUser, $wgLang, $wgTitle; $datetime = $wgLang->timeanddate( $timestamp, true ); $del = wfMsg( 'deleteimg' ); diff --git a/includes/Linker.php b/includes/Linker.php index 798a26296f..f7c1959bda 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -230,7 +230,6 @@ class Linker { * @return the a-element */ function makeKnownLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '' ) { - global $wgTitle; $fname = 'Linker::makeKnownLinkObj'; wfProfileIn( $fname ); @@ -800,7 +799,6 @@ class Linker { /** @todo document */ function editSectionLinkForOther( $title, $section ) { - global $wgRequest; global $wgContLang; $title = Title::newFromText($title); diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 30b1b502a4..2e02aec46a 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -33,8 +33,7 @@ class LinksUpdate { */ function doUpdate() { - global $wgUseDumbLinkUpdate, $wgLinkCache, $wgDBtransactions; - global $wgUseCategoryMagic; + global $wgUseDumbLinkUpdate, $wgLinkCache, $wgUseCategoryMagic; if ( $wgUseDumbLinkUpdate ) { $this->doDumbUpdate(); @@ -189,7 +188,7 @@ class LinksUpdate { * Also useful where link table corruption needs to be repaired, e.g. in refreshLinks.php */ function doDumbUpdate() { - global $wgLinkCache, $wgDBtransactions, $wgUseCategoryMagic; + global $wgLinkCache, $wgUseCategoryMagic; $fname = 'LinksUpdate::doDumbUpdate'; wfProfileIn( $fname ); diff --git a/includes/LoadBalancer.php b/includes/LoadBalancer.php index edc1fad078..40b461308b 100644 --- a/includes/LoadBalancer.php +++ b/includes/LoadBalancer.php @@ -159,9 +159,8 @@ class LoadBalancer { * * Side effect: opens connections to databases */ - function getReaderIndex() - { - global $wgMaxLag, $wgReadOnly, $wgDBClusterTimeout; + function getReaderIndex() { + global $wgReadOnly, $wgDBClusterTimeout; $fname = 'LoadBalancer::getReaderIndex'; wfProfileIn( $fname ); diff --git a/includes/MessageCache.php b/includes/MessageCache.php index d13f174246..a5c99f68dd 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -21,8 +21,7 @@ define( 'MSG_WAIT_TIMEOUT', 10); * * @package MediaWiki */ -class MessageCache -{ +class MessageCache { var $mCache, $mUseCache, $mDisable, $mExpiry; var $mMemcKey, $mKeys, $mParserOptions, $mParser; var $mExtensionMessages = array(); @@ -30,7 +29,6 @@ class MessageCache var $mDeferred = true; function initialise( &$memCached, $useDB, $expiry, $memcPrefix) { - global $wgLocalMessageCache; $fname = 'MessageCache::initialise'; wfProfileIn( $fname ); @@ -117,7 +115,7 @@ class MessageCache * Returns false for a reportable error, true otherwise */ function load() { - global $wgAllMessagesEn, $wgLocalMessageCache; + global $wgLocalMessageCache; if ( $this->mDisable ) { static $shownDisabled = false; diff --git a/includes/Metadata.php b/includes/Metadata.php index c60fe43403..333ff9a7a5 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -71,7 +71,7 @@ function wfCreativeCommonsRdf($article) { * @private */ function rdfSetup() { - global $wgOut, $wgRdfMimeType, $_SERVER; + global $wgOut, $_SERVER; $rdftype = wfNegotiateType(wfAcceptToPrefs($_SERVER['HTTP_ACCEPT']), wfAcceptToPrefs(RDF_TYPE_PREFS)); diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a0e77e4951..02b75ea6b9 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -93,7 +93,7 @@ class OutputPage { * returns true iff cache-ok headers was sent. */ function checkLastModified ( $timestamp ) { - global $wgLang, $wgCachePages, $wgUser; + global $wgCachePages, $wgUser; if ( !$timestamp || $timestamp == '19700101000000' ) { wfDebug( "CACHE DISABLED, NO TIMESTAMP\n" ); return; @@ -263,7 +263,7 @@ class OutputPage { } function addWikiTextTitle($text, &$title, $linestart) { - global $wgParser, $wgUseTidy; + global $wgParser; $parserOutput = $wgParser->parse( $text, $title, $this->mParserOptions, $linestart, true, $this->mRevisionId ); $this->mLanguageLinks += $parserOutput->getLanguageLinks(); @@ -279,7 +279,7 @@ class OutputPage { * Saves the text into the parser cache if possible */ function addPrimaryWikiText( $text, $cacheArticle ) { - global $wgParser, $wgParserCache, $wgUser, $wgUseTidy; + global $wgParser, $wgParserCache, $wgUser; $parserOutput = $wgParser->parse( $text, $cacheArticle->mTitle, $this->mParserOptions, true, true, $this->mRevisionId ); @@ -420,9 +420,8 @@ class OutputPage { * the object, let's actually output it: */ function output() { - global $wgUser, $wgLang, $wgDebugComments, $wgCookieExpiration; - global $wgInputEncoding, $wgOutputEncoding, $wgContLanguageCode; - global $wgDebugRedirects, $wgMimeType, $wgProfiler; + global $wgUser, $wgCookieExpiration, $wgOutputEncoding; + global $wgContLanguageCode, $wgDebugRedirects, $wgMimeType, $wgProfiler; if( $this->mDoNothing ){ return; diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 56c2737af1..ac3f6668c1 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -53,8 +53,7 @@ class PageHistory { * @returns nothing */ function history() { - global $wgUser, $wgOut, $wgLang, $wgShowUpdatedMarker, $wgRequest, - $wgTitle, $wgUseValidation; + global $wgUser, $wgOut, $wgRequest, $wgTitle, $wgUseValidation; /* * Allow client caching. @@ -232,7 +231,6 @@ class PageHistory { /** @todo document */ function historyLine( $row, $next, $counter = '', $notificationtimestamp = false, $latest = false, $firstInList = false ) { - global $wgLang, $wgContLang; if ( 0 == $row->rev_user ) { $contribsPage =& Title::makeTitle( NS_SPECIAL, 'Contributions' ); diff --git a/includes/Parser.php b/includes/Parser.php index 7679655a72..a02d205d62 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2680,7 +2680,7 @@ class Parser * @access private */ function formatHeadings( $text, $isMain=true ) { - global $wgMaxTocLevel, $wgContLang, $wgLinkHolders, $wgInterwikiLinkHolders; + global $wgMaxTocLevel, $wgContLang; $doNumberHeadings = $this->mOptions->getNumberHeadings(); $doShowToc = true; @@ -3514,8 +3514,7 @@ class Parser * Parse image options text and use it to make an image */ function makeImage( &$nt, $options ) { - global $wgContLang, $wgUseImageResize; - global $wgUser, $wgThumbLimits; + global $wgContLang, $wgUseImageResize, $wgUser; $align = ''; diff --git a/includes/Profiling.php b/includes/Profiling.php index 316f264ddc..8bb794589a 100755 --- a/includes/Profiling.php +++ b/includes/Profiling.php @@ -65,7 +65,7 @@ class Profiler { $memory = memory_get_usage(); $time = $this->getTime(); - global $wgDebugProfiling, $wgDebugFunctionEntry; + global $wgDebugFunctionEntry; if ($wgDebugFunctionEntry && function_exists('wfDebug')) { wfDebug(str_repeat(' ', count($this->mWorkStack) - 1).'Exiting '.$functionname."\n"); diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 05de61e8db..62fd92b09d 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -257,7 +257,7 @@ class QueryPage { * @param $shownavigation show navigation like "next 200"? */ function doQuery( $offset, $limit, $shownavigation=true ) { - global $wgUser, $wgOut, $wgLang, $wgRequest, $wgContLang; + global $wgUser, $wgOut, $wgContLang; $sname = $this->getName(); $fname = get_class($this) . '::doQuery'; diff --git a/includes/SearchUpdate.php b/includes/SearchUpdate.php index 3396eb9d09..9601f09170 100644 --- a/includes/SearchUpdate.php +++ b/includes/SearchUpdate.php @@ -29,7 +29,7 @@ class SearchUpdate { } function doUpdate() { - global $wgDBminWordLen, $wgContLang, $wgDisableSearchUpdate; + global $wgContLang, $wgDisableSearchUpdate; if( $wgDisableSearchUpdate || !$this->mId ) { return false; diff --git a/includes/SiteStatsUpdate.php b/includes/SiteStatsUpdate.php index 1c82d08668..1b6d3804e3 100644 --- a/includes/SiteStatsUpdate.php +++ b/includes/SiteStatsUpdate.php @@ -35,7 +35,6 @@ class SiteStatsUpdate { } function doUpdate() { - global $wgDBname; $fname = 'SiteStatsUpdate::doUpdate'; $dbw =& wfGetDB( DB_MASTER ); diff --git a/includes/Skin.php b/includes/Skin.php index b457a82d8f..a9aeccd010 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -109,8 +109,8 @@ class Skin extends Linker { } function addMetadataLinks( &$out ) { - global $wgTitle, $wgEnableDublinCoreRdf, $wgEnableCreativeCommonsRdf, $wgRdfMimeType, $action; - global $wgRightsPage, $wgRightsUrl, $wgUseTrackbacks; + global $wgTitle, $wgEnableDublinCoreRdf, $wgEnableCreativeCommonsRdf; + global $wgRightsPage, $wgRightsUrl; if( $out->isArticleRelated() ) { # note: buggy CC software only reads first "meta" link @@ -176,7 +176,7 @@ class Skin extends Linker { } function getHeadScripts() { - global $wgStylePath, $wgUser, $wgContLang, $wgAllowUserJs, $wgJsMimeType; + global $wgStylePath, $wgUser, $wgAllowUserJs, $wgJsMimeType; $r = "\n"; if( $wgAllowUserJs && $wgUser->isLoggedIn() ) { $userpage = $wgUser->getUserPage(); @@ -237,7 +237,7 @@ class Skin extends Linker { * Return html code that include User stylesheets */ function getUserStyles() { - global $wgOut, $wgStylePath, $wgLang; + global $wgOut, $wgStylePath; $s = "