bjornbjorn / snippetssync.ee2_addon

Save snippets as files during development
http://wedoaddons.com
21 stars 8 forks source link

Config Override Possibility #2

Closed erikreagan closed 13 years ago

erikreagan commented 13 years ago

Hi Bjørn,

We're using snippetsync on a site (thanks!) and I found a need to trigger "Production Mode" automatically without modifying the add-on's config file. I ever-so-slightly altered the Extension file to check for a config.php value so we could achieve this.

Feel free to merge or ignore the change. I thought I'd send it your way regardless.

Cheers, Erik

Added the ability to trigger "Production Mode" without altering the add-on config file. Now I can trigger production mode in a config.php override based on my environment (automatically)

$config['snippetssync_production_mode_override'] = TRUE;

Bumped version up to 1.0.2