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.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 68c6f5908..c94c88004 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -258,7 +258,16 @@ if ( ! function_exists('doctype'))
if ( ! is_array($_doctypes))
{
- if ( ! require_once(APPPATH.'config/doctypes.php'))
+ if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT))
+ {
+ @include(APPPATH.'config/'.ENVIRONMENT.'/doctypes'.EXT);
+ }
+ else
+ {
+ @include(APPPATH.'config/doctypes'.EXT);
+ }
+
+ if ( ! is_array($_doctypes))
{
return FALSE;
}