CRM-17177. die() instead of trigger_error() when accessed via web.
authorChris Burgess <chris@giantrobot.co.nz>
Sun, 8 Nov 2015 09:49:54 +0000 (22:49 +1300)
committerChris Burgess <chris@giantrobot.co.nz>
Sun, 8 Nov 2015 09:49:54 +0000 (22:49 +1300)
bin/cli.class.php

index 5340869a1cae97b5884b674c25b97c59cc3648fa..1a2b8cab6c7829e508e3b40c7eed4608b9f7cdc1 100644 (file)
@@ -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.");
     }
   }