From: Florent Bruneau Date: Mon, 22 Feb 2010 10:45:29 +0000 (+0100) Subject: Set error return code when PlPage::kill() is called from CLI. X-Git-Tag: core/1.1.0~75 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fc2cfa65c5e0d22fb1711827009064bc1909c1c6;p=platal.git Set error return code when PlPage::kill() is called from CLI. Signed-off-by: Florent Bruneau --- diff --git a/classes/plpage.php b/classes/plpage.php index ab6ce15..875981e 100644 --- a/classes/plpage.php +++ b/classes/plpage.php @@ -249,7 +249,7 @@ abstract class PlPage extends Smarty // PHP is used on command line... do not run the whole page stuff. if (php_sapi_name() == 'cli') { echo $msg . "\n"; - exit; + exit(-1); } global $platal;