summaryrefslogtreecommitdiffstats
path: root/system/helpers/html_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/html_helper.php')
-rw-r--r--system/helpers/html_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 15c15a919..53fc899a3 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -258,13 +258,13 @@ if ( ! function_exists('doctype'))
if ( ! is_array($_doctypes))
{
- if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT))
+ if (is_file(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT))
{
include(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT);
}
- else
+ elseif (is_file(APPPATH.'config/doctypes'.EXT))
{
- @include(APPPATH.'config/doctypes'.EXT);
+ include(APPPATH.'config/doctypes'.EXT);
}
if ( ! is_array($_doctypes))