diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-08-03 19:13:08 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-08-03 19:13:08 +0200 |
commit | b7f03851df576dfca3de8757d9b8a7a84e86c1a0 (patch) | |
tree | 33d67acf25eab3794ccd0d703e077e2c4757bf2b | |
parent | 8909ab7629ec67708b589c35d380c68da04a8b44 (diff) | |
download | rpg-b7f03851df576dfca3de8757d9b8a7a84e86c1a0.tar.gz rpg-b7f03851df576dfca3de8757d9b8a7a84e86c1a0.tar.bz2 |
make sure pagetool sprite uilder is only run from command line
-rw-r--r-- | lib/tpl/dokuwiki/images/pagetools-build.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tpl/dokuwiki/images/pagetools-build.php b/lib/tpl/dokuwiki/images/pagetools-build.php index 3cf35b2ea..eaceeb257 100644 --- a/lib/tpl/dokuwiki/images/pagetools-build.php +++ b/lib/tpl/dokuwiki/images/pagetools-build.php @@ -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); |