and ($this->getID() != 0)
and ($wgUser->getId() == 0)
and (!$wgUser->getNewtalk())
- and ($this->mTitle->getNamespace != Namespace::getSpecial())
+ and ($this->mTitle->getNamespace() != Namespace::getSpecial())
and ($action == "view")
and (!isset($oldid))
and (!isset($diff))
function DateFormatter()
{
- global $wgMonthNamesEn;
+ global $wgMonthNamesEn, $wgInputEncoding;
$this->monthNames = $this->getMonthRegex();
for ( $i=1; $i<=12; $i++ ) {
$elapsed = $now - $start;
if ( "" != $wgDebugLogFile ) {
$prof = wfGetProfilingOutput( $start, $elapsed );
+ $forward = "";
if( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) )
$forward = " forwarded for " . $_SERVER['HTTP_X_FORWARDED_FOR'];
if( !empty( $_SERVER['HTTP_CLIENT_IP'] ) )
global $wgArticle, $wgDeferredUpdateList, $wgLinkCache;
global $wgMemc, $wgMagicWords, $wgMwRedir, $wgDebugLogFile;
global $wgMessageCache, $wgUseMemCached, $wgUseDatabaseMessages;
-global $wgMsgCacheExpiry, $wgDBname;
+global $wgMsgCacheExpiry, $wgDBname, $wgCommandLineMode;
class MemCachedClientforWiki extends MemCachedClient {
function _debug( $text ) {
}
function outputPage( &$out ) {
+ global $wgDebugComments;
+
wfProfileIn( "Skin::outputPage" );
$this->initPage();
$out->out( $out->headElement() );
function otherLanguages()
{
- global $wgOut, $wgLang, $wgTitle;
+ global $wgOut, $wgLang, $wgTitle, $wgUseNewInterlanguage;
$a = $wgOut->getLanguageLinks();
# TEST THIS @@@
}
function tocUnindent($level) {
+ $rv = "";
while($level-->0) $rv.="</div>\n";
return $rv;
}