Commit 36630788 authored by Aaron Wells's avatar Aaron Wells

Make sure CLI scripts are only being run from the CLI

Bug 1387903

Change-Id: I369d58f85c944f4be2bc2965c080b2c4c86dadc1
parent eb346d27
......@@ -11,6 +11,10 @@
defined('INTERNAL') || die();
if (defined('CLI') && php_sapi_name() != 'cli') {
$CFG = new StdClass;
$CFG->docroot = dirname(__FILE__) . '/';
//array containing site options from database that are overrided by $CFG
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment