khashnan / timthumb

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

http://code.google.com/p/timthumb/ #225

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would it be possible to read all the options from a separate file? I was 
thinking something along the lines of:-

if( file_exists( 'timthumb-options.php' ) ) require_once( 
'timthumb-options.php' );

if( !defined( 'DEBUG_ON' ) ) define ('DEBUG_ON', false);
if( !defined( 'DEBUG_LEVEL' ) ) define ('DEBUG_LEVEL', 1);

etc...

Doing something like this would mean no change for anyone using the defaults, 
but would make it very simple to override any option and make updating timthumb 
a simple file replacement, which would make it much quicker and easier to keep 
timthumb updated.

Thanks,

mark.

Original issue reported on code.google.com by m...@rowatt.com on 8 Aug 2011 at 10:22

GoogleCodeExporter commented 8 years ago
Apologies - the subject for this wasn't what I intended. I resubmitted as #226, 
this request can be deleted.

Original comment by m...@rowatt.com on 8 Aug 2011 at 10:26

GoogleCodeExporter commented 8 years ago

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