changeset 944:535466595a5a

Move CLI exec check to program start.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 28 Nov 2014 07:36:44 +0200
parents f1c2cce5a5d5
children 025f5e3e27d7
files faptool.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Fri Nov 28 07:36:27 2014 +0200
+++ b/faptool.php	Fri Nov 28 07:36:44 2014 +0200
@@ -8,7 +8,6 @@
 require_once "mconfig.inc.php";
 require_once "msite.inc.php";
 
-stCheckCLIExec();
 
 
 function wtConvertImage($inFilename, $inFileType, $outFilename, $setDim, $setFormat, $setQuality, $thumb)
@@ -452,6 +451,7 @@
 //
 // Main program starts
 //
+stCheckCLIExec();
 if ($argc < 2)
 {
   wtShowHelp();