iwyg / filemanager

Filemanager for Symphony CMS
13 stars 11 forks source link

STATUS_OK and Symphony integration branch #20

Closed DavidOliver closed 11 years ago

DavidOliver commented 11 years ago

Just installed into the current integration branch of Symphony, and I was getting:

PHP Fatal error: Undefined class constant 'STATUS_OK' in /srv/www/doliver/webroot/extensions/filemanager/lib/class.jsonpage.php on line 31

Changing STATUS_OK to HTTP_STATUS_OK on lines 31 and 112 got it working. Maybe these constant names have changed recently, @brendo ?

There are some other statuses throughout the same file which also look like they need changing as Symphony has HTTP_STATUS_BAD and HTTP_STATUS_ERROR. A grep for STATUS_UNAUTHORISED didn't turn up anything in Symphony's classes, though.

iwyg commented 11 years ago

yes, they did. So once 2.3.2 is final. I'll update that. I think the STATUS_UNAUTHORIZED was defined in class AjaxPage