$config = array_merge($config, $settings);
}
- protected function _sn_to_path($sn)
+ protected static function _sn_to_path($sn)
{
$past_root = substr($sn, 1);
$last_slash = strrpos($past_root, '/');
*
* @throws NoConfigException
*/
- protected function loadConfigFile($conffile=null)
+ protected static function loadConfigFile($conffile=null)
{
global $_server, $_path, $config;
$url = $this->arg($arg);
$params = array('domain_check' => false, // otherwise breaks my local tests :P
'allowed_schemes' => array('http', 'https'));
- if (Validate::uri($url, $params)) {
+ $validate = new Validate;
+ if ($validate->uri($url, $params)) {
return $url;
} else {
// TRANS: Client exception.