private $title = null;
private $file = null;
private $oldimage = '';
+ private $timestamp = false;
/**
* Constructor
* @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