setup/controllers/contexts.php
Consider simplifying this complex logical expression. Open
Open
if (!empty($_POST['proceed'])) {
unset($_POST['proceed']);
$webUrl= substr($_SERVER['SCRIPT_NAME'], 0, strpos($_SERVER['SCRIPT_NAME'], 'setup/'));
$_POST['context_web_path'] = !empty($_POST['context_web_path']) ? rtrim($_POST['context_web_path'],'/').'/' : MODX_INSTALL_PATH;