From 4b791b64f1c2e0f40e11b2c8f47747016809dbb4 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 15 Jan 2005 10:40:46 +0000 Subject: [PATCH] Lagged slave warning --- includes/Skin.php | 5 ++++- languages/Language.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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', -- 2.20.1