Skip to content

Commit

Permalink
make sure pagetool sprite uilder is only run from command line
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Aug 3, 2015
1 parent 8909ab7 commit b7f0385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tpl/dokuwiki/images/pagetools-build.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
$GAMMA = 0.8;
$OPTIPNG = '/usr/bin/optipng';

if('cli' != php_sapi_name()) die('please run from commandline');

// load input images
$input = glob('pagetools/*.png');
sort($input);
Expand Down

0 comments on commit b7f0385

Please sign in to comment.