function is hashurl, variable is urlhash

This commit is contained in:
Mikael Nordfeldth 2015-02-19 19:07:43 +01:00
parent 45dc76de26
commit c05e9b118c
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ class File extends Managed_DataObject
if (!empty($this->filename)) {
// A locally stored file, so let's generate a URL for our instance.
$url = self::url($this->filename);
if (self::urlhash($url) !== $this->urlhash) {
if (self::hashurl($url) !== $this->urlhash) {
// For indexing purposes, in case we do a lookup on the 'url' field.
// also we're fixing possible changes from http to https, or paths
$this->updateUrl($url);