From: Chris Burgess Date: Sun, 8 Nov 2015 09:49:54 +0000 (+1300) Subject: CRM-17177. die() instead of trigger_error() when accessed via web. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9c8d6e29200eab9af040eb93b4da290e1a2bc4ee;p=civicrm-core.git CRM-17177. die() instead of trigger_error() when accessed via web. --- diff --git a/bin/cli.class.php b/bin/cli.class.php index 5340869a1c..1a2b8cab6c 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -88,7 +88,7 @@ class civicrm_cli { return TRUE; } else { - trigger_error("cli.php can only be run from command line.", E_USER_ERROR); + die("cli.php can only be run from command line."); } }