From: aude Date: Thu, 6 Mar 2014 23:32:47 +0000 (+0100) Subject: Fix undefined property in PoolCounterWork X-Git-Tag: 1.31.0-rc.0~16707^2 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=098c9f7e7915d708b4e439a90e3fc7ab3ed5ab36;p=lhc%2Fweb%2Fwiklou.git Fix undefined property in PoolCounterWork Change-Id: I033288d31dcef2120eb9239d1bc690d5cb0edda6 --- 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() ); }