Commit 15d1f1f9 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Make sure CLI scripts are only being run from the CLI"

parents 330d509a 36630788
......@@ -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