- same with 05_froxlor_default_errorhandler.conf

This commit is contained in:
Michael Kaufmann (d00p)
2010-05-27 10:20:37 +00:00
parent 07e388c554
commit 0db11bf0f8

View File

@@ -111,7 +111,15 @@ class apache
|| $this->settings['defaultwebsrverrhandler']['err404'] != '' || $this->settings['defaultwebsrverrhandler']['err404'] != ''
|| $this->settings['defaultwebsrverrhandler']['err500'] != '') || $this->settings['defaultwebsrverrhandler']['err500'] != '')
) { ) {
$vhosts_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/05_froxlor_default_errorhandler.conf'); $vhosts_folder = '';
if(is_dir($this->settings['system']['apacheconf_vhost']))
{
$vhosts_folder = makeCorrectPath($this->settings['system']['apacheconf_vhost']);
} else {
$vhosts_folder = makeCorrectPath(dirname($this->settings['system']['apacheconf_vhost']));
}
$vhosts_filename = makeCorrectFile($vhosts_folder . '/05_froxlor_default_errorhandler.conf');
if(!isset($this->virtualhosts_data[$vhosts_filename])) if(!isset($this->virtualhosts_data[$vhosts_filename]))
{ {