Commit 232a1af8 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Make sure CLI scripts are only being run from the CLI

Bug 1387903

Change-Id: I369d58f85c944f4be2bc2965c080b2c4c86dadc1
parent 2270018d
......@@ -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