We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 7025817c authored by mattl's avatar mattl

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
$tn->height = intval($height);
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