Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#60 config_allow_src_above_docroot not taking custom value

open
nobody
None
5
2014-09-04
2012-04-13
martinsalinas
No

I'm using phpThum as a plugin for MeioUpload behavior on CakePHP2

On phpThumb.config.php i set:

$PHPTHUMB_CONFIG['allow_src_above_phpthumb'] = true;

but then on phpthumb.class.php, method ResolveFilenameToAbsolute it checks:

if (!$this->config_allow_src_above_docroot && ....

that was causing me some troubles, so if just above that check I var_dump($this->config_allow_src_above_docroot), it says it's FALSE.

i set it to true on line 142:
var $config_allow_src_above_docroot = true;

and now it's working.

shouldn't phpthumb be mapping those values overriden in phpThumb.config.php?

Discussion