[Owncloud] Code review? OC_Image class

Robin Appelman icewind1991 at gmail.com
Sun Jan 1 23:10:58 UTC 2012


Yes, there is no reason for it to be static.

- Robin Appelman



On Mon, Jan 2, 2012 at 00:02, Thomas Olsen <thomas at tanghus.net> wrote:
> On Sunday 01 January 2012 23:58 Robin Appelman wrote:
>> "// if($this->valid()) { // FIXME: I get an error: "PHP Fatal error:
>> Using $this when not in object context..." WTF?"
>>
>> the function loadFromFile is static, so while in that function you're
>> not in object context.
>
> Facepalm - Thanks :-)
>
> So I'd better make it non-static, right?
>
> --
> Med venlig hilsen / Best Regards
>
> Thomas Olsen
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud



More information about the Owncloud mailing list