summaryrefslogtreecommitdiffstats
path: root/application/config/doctypes.php
diff options
context:
space:
mode:
authordarwinel <kmorssink@gmail.com>2014-02-11 20:13:22 +0100
committerdarwinel <kmorssink@gmail.com>2014-02-11 20:13:22 +0100
commitd8bef8a878238c6974f01758469af1c13ac8b8d7 (patch)
treee7e399fd3703b0457d072726d2b837e43d43660c /application/config/doctypes.php
parent25f119cef588a01651cec7c59d3b03924b2dd81c (diff)
"BASEPATH check" consistency
As described in issue #2870 + A change in the „How to create a library” example in the user_guide
Diffstat (limited to 'application/config/doctypes.php')
-rw-r--r--application/config/doctypes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/config/doctypes.php b/application/config/doctypes.php
index 3086a35f9..4468456b3 100644
--- a/application/config/doctypes.php
+++ b/application/config/doctypes.php
@@ -1,4 +1,4 @@
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+<?php
/**
* CodeIgniter
*
@@ -24,6 +24,7 @@
* @since Version 1.0
* @filesource
*/
+defined('BASEPATH') OR exit('No direct script access allowed');
$_doctypes = array(
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',