/** @var bool */
protected $hasSha1Storage = false;
+ /** @var bool */
+ protected $supportsSha1URLs = false;
+
/** @var FileBackend */
protected $backend;
protected $scriptDirUrl;
/** @var string Script extension of the MediaWiki installation, equivalent
- * to $wgScriptExtension, e.g. .php5 defaults to .php */
+ * to the old $wgScriptExtension, e.g. .php5 defaults to .php */
protected $scriptExtension;
/** @var string Equivalent to $wgArticlePath, e.g. https://en.wikipedia.org/wiki/$1 */
$this->zones[$zone]['urlsByExt'] = array();
}
}
+
+ $this->supportsSha1URLs = !empty( $info['supportsSha1URLs'] );
}
/**
public function hasSha1Storage() {
return $this->hasSha1Storage;
}
+
+ /**
+ * Returns whether or not repo supports having originals SHA-1s in the thumb URLs
+ * @return boolean
+ */
+ public function supportsSha1URLs() {
+ return $this->supportsSha1URLs;
+ }
}
/**