Closed (fixed)
Project:
Image javascript crop
Version:
7.x-1.x-dev
Component:
PHP
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2012 at 17:30 UTC
Updated:
4 Apr 2012 at 21:00 UTC
imagecrop.admin.inc:209:
watchdog('imagecrop', 'Access denied for user @name on fid @fid', array('@name' => $user->name, '@fid' => $imagecrop->file->fid));
At imagecrop.admin.inc:198, $imagecrop is instantiated as an object: $imagecrop = new ImageCrop();
ImageCrop::$file is a private member. The class's public file getter, ImageCrop::getFile(), should be used instead:
- watchdog('imagecrop', 'Access denied for user @name on fid @fid', array('@name' => $user->name, '@fid' => $imagecrop->file->fid));
+ watchdog('imagecrop', 'Access denied for user @name on fid @fid', array('@name' => $user->name, '@fid' => $imagecrop->getFile()->fid));
Comments
Comment #1
nils.destoop commentedThx for notifying about this. The change has been committed.