From 9d1062c2da5b4ebce5d936e2f7aa61bf55305f7a Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 20 Aug 2007 14:57:30 +0000 Subject: [PATCH] Use an instance variable, not a static one --- includes/FileRevertForm.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1