projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45dc76d
)
function is hashurl, variable is urlhash
author
Mikael Nordfeldth
<mmn@hethane.se>
Thu, 19 Feb 2015 18:07:43 +0000
(19:07 +0100)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Thu, 19 Feb 2015 18:07:43 +0000
(19:07 +0100)
classes/File.php
patch
|
blob
|
history
diff --git
a/classes/File.php
b/classes/File.php
index 89dcf61cc550f776648492a9e3a9ab0c8ea5413a..a10403c49c6fff8939e1448faf6cd994a7f0ea92 100644
(file)
--- a/
classes/File.php
+++ b/
classes/File.php
@@
-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);