Commit 7025817c authored by mmn's avatar mmn

File_thumbnail lacked getUrl function

The only reason it worked was because DB fetches calls to get$varname if
the dataobject has a variable with the specific name. However, it started
blurting out errors that the case must be correct (which would require
'geturl' to be the function name).

Since we probably want to replace DB sometime, we'll just override this
auto-fetching mechanism and use more explicitly defined functions.
parent 28dc361a
...@@ -100,4 +100,9 @@ class File_thumbnail extends Managed_DataObject ...@@ -100,4 +100,9 @@ class File_thumbnail extends Managed_DataObject
$tn->height = intval($height); $tn->height = intval($height);
$tn->insert(); $tn->insert();
} }
public function getUrl()
{
return $this->url;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment