From 098c9f7e7915d708b4e439a90e3fc7ab3ed5ab36 Mon Sep 17 00:00:00 2001 From: aude Date: Fri, 7 Mar 2014 00:32:47 +0100 Subject: [PATCH] Fix undefined property in PoolCounterWork Change-Id: I033288d31dcef2120eb9239d1bc690d5cb0edda6 --- includes/PoolCounter.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/includes/PoolCounter.php b/includes/PoolCounter.php index 3d4c4643c0..7acabfd508 100644 --- a/includes/PoolCounter.php +++ b/includes/PoolCounter.php @@ -91,6 +91,13 @@ abstract class PoolCounter { return new $class( $conf, $type, $key ); } + /** + * @return string + */ + public function getKey() { + return $this->key; + } + /** * I want to do this task and I need to do it myself. * @@ -186,7 +193,9 @@ abstract class PoolCounterWork { * @return void */ function logError( $status ) { - wfDebugLog( 'poolcounter', "Pool key '{$this->key}': " + $key = $this->poolCounter->getKey(); + + wfDebugLog( 'poolcounter', "Pool key '$key': " . $status->getMessage()->inLanguage( 'en' )->useDatabase( false )->text() ); } -- 2.20.1