Index: trunk/phase3/includes/FileRevertForm.php |
— | — | @@ -11,6 +11,7 @@ |
12 | 12 | private $title = null; |
13 | 13 | private $file = null; |
14 | 14 | private $oldimage = ''; |
| 15 | + private $timestamp = false; |
15 | 16 | |
16 | 17 | /** |
17 | 18 | * Constructor |
— | — | @@ -153,12 +154,11 @@ |
154 | 155 | * @return string |
155 | 156 | */ |
156 | 157 | private function getTimestamp() { |
157 | | - static $timestamp = false; |
158 | | - if( $timestamp === false ) { |
| 158 | + if( $this->timestamp === false ) { |
159 | 159 | $file = RepoGroup::singleton()->getLocalRepo()->newFromArchiveName( $this->title, $this->oldimage ); |
160 | | - $timestamp = $file->getTimestamp(); |
| 160 | + $this->timestamp = $file->getTimestamp(); |
161 | 161 | } |
162 | | - return $timestamp; |
| 162 | + return $this->timestamp; |
163 | 163 | } |
164 | 164 | |
165 | 165 | } |
\ No newline at end of file |