khashnan / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

empty (use tmp folder) FILE_CACHE_DIRECTORY in timthumconfig.php #228

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When specifying 

$FILE_CACHE_DIRECTORY = ''; 

In timthumbconfig.php the value within timthumb.php still seems to be taken 
into account (maybe because this one is empty / undefined)

Please advise if i am doing something wrong. 

timthumbconfig.php : 

<?php

$FILE_CACHE_DIRECTORY = '';

$ALLOWED_SITES = array (
        'site1.com',
        'site2.com',
);

?>

Original issue reported on code.google.com by edouard....@gmail.com on 10 Aug 2011 at 9:20

GoogleCodeExporter commented 8 years ago
It's a PHP constant, not a variable, thus you need to define it in 
timthumb-config.php as:

define ('FILE_CACHE_DIRECTORY', '');

Original comment by mmaun...@gmail.com on 10 Aug 2011 at 9:33

GoogleCodeExporter commented 8 years ago
Thank you.
My apologies for reporting a "Notbug".

Original comment by edouard....@gmail.com on 10 Aug 2011 at 9:36