meghlal / timthumb

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

Load options from separate file #226

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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:24

GoogleCodeExporter commented 9 years ago
Great idea! Done.

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

GoogleCodeExporter commented 9 years ago
Fantastic - thanks!

Original comment by m...@rowatt.com on 9 Aug 2011 at 10:25