From: Tim Starling Date: Sat, 15 Jan 2005 10:40:46 +0000 (+0000) Subject: Lagged slave warning X-Git-Tag: 1.5.0alpha1~932 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=4b791b64f1c2e0f40e11b2c8f47747016809dbb4;p=lhc%2Fweb%2Fwiklou.git Lagged slave warning --- diff --git a/includes/Skin.php b/includes/Skin.php index 14bb1903db..ea29fd85fe 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -832,7 +832,7 @@ class Skin extends Linker { } function lastModified() { - global $wgLang, $wgArticle; + global $wgLang, $wgArticle, $wgLoadBalancer; $timestamp = $wgArticle->getTimestamp(); if ( $timestamp ) { @@ -841,6 +841,9 @@ class Skin extends Linker { } else { $s = ''; } + if ( $wgLoadBalancer->getLaggedSlaveMode() ) { + $s .= ' ' . wfMsg( 'laggedslavemode' ) . ''; + } return $s; } diff --git a/languages/Language.php b/languages/Language.php index 7192d9a164..c93bc32b1b 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -491,6 +491,7 @@ MySQL returned error \"$3: $4\".\n", $1', 'nodb' => "Could not select database $1", 'cachederror' => 'The following is a cached copy of the requested page, and may not be up to date.', +'laggedslave' => 'Warning: Page may not contain recent updates.', 'readonly' => 'Database locked', 'enterlockreason' => 'Enter a reason for the lock, including an estimate of when the lock will be released',