Set _REQUEST['request'] by default

Should alleviate some redundant isset()s throughout a site's code
This commit is contained in:
Josh Sherman 2012-10-11 22:50:32 -04:00
parent e05dd7c79e
commit 482f77c10b
4 changed files with 38 additions and 44 deletions

View file

@ -147,6 +147,14 @@ if (isset($config->pickles['session']))
}
}
// }}}
// {{{ Defaults some internals for ease of use
if (!isset($_REQUEST['request']))
{
$_REQUEST['request'] = isset($config->pickles['module']) ? $config->pickles['module'] : '';
}
// }}}
// {{{ Auto[magical] Loader