From: Rob Church Date: Mon, 20 Aug 2007 14:57:30 +0000 (+0000) Subject: Use an instance variable, not a static one X-Git-Tag: 1.31.0-rc.0~51716 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=9d1062c2da5b4ebce5d936e2f7aa61bf55305f7a;p=lhc%2Fweb%2Fwiklou.git Use an instance variable, not a static one --- diff --git a/includes/FileRevertForm.php b/includes/FileRevertForm.php index 6945a1879e..1adde88e02 100644 --- a/includes/FileRevertForm.php +++ b/includes/FileRevertForm.php @@ -11,6 +11,7 @@ class FileRevertForm { private $title = null; private $file = null; private $oldimage = ''; + private $timestamp = false; /** * Constructor @@ -153,12 +154,11 @@ class FileRevertForm { * @return string */ private function getTimestamp() { - static $timestamp = false; - if( $timestamp === false ) { + if( $this->timestamp === false ) { $file = RepoGroup::singleton()->getLocalRepo()->newFromArchiveName( $this->title, $this->oldimage ); - $timestamp = $file->getTimestamp(); + $this->timestamp = $file->getTimestamp(); } - return $timestamp; + return $this->timestamp; } } \ No newline at end of file