summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/codeigniter/Base5.php32
-rw-r--r--system/database/DB_result.php4
-rw-r--r--system/libraries/Profiler.php4
-rw-r--r--user_guide/installation/upgrade_140.html2
4 files changed, 18 insertions, 24 deletions
diff --git a/system/codeigniter/Base5.php b/system/codeigniter/Base5.php
index ef3fc67f4..a0beea46c 100644
--- a/system/codeigniter/Base5.php
+++ b/system/codeigniter/Base5.php
@@ -32,31 +32,23 @@
class CI_Base {
- public function CI_Base()
- {
- $instance =& _load_class('Instance');
- $instance->set_instance($this);
- }
-}
-
-class Instance {
- public static $instance;
+ public static $instance;
- public function set_instance(&$object)
- {
- self::$instance =& $object;
- }
-
- public function &get_instance()
- {
- return self::$instance;
- }
+ public function CI_Base()
+ {
+ self::$instance =& $this;
+ }
+
+ public static function &get_instance()
+ {
+ return self::$instance;
+ }
}
function &get_instance()
{
- $instance =& _load_class('Instance');
- return $instance->get_instance();
+ return CI_Base::get_instance();
}
+
?> \ No newline at end of file
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index 32c51e07b..3bd43bac6 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -70,7 +70,7 @@ class CI_DB_result {
if (count($this->result_object) == 0)
{
- return FALSE;
+ return array();
}
return $this->result_object;
@@ -98,7 +98,7 @@ class CI_DB_result {
if (count($this->result_array) == 0)
{
- return FALSE;
+ return array();
}
return $this->result_array;
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index 807a7a83f..6626190b1 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -174,7 +174,9 @@ class CI_Profiler {
*/
function run($output = '')
{
- $output = '<br style="margin:0;padding:0;clear:both;" />';
+ $obj =& get_instance();
+
+ $output = '<br clear="all" />';
$output .= $this->_compile_benchmarks();
$output .= $this->_compile_post();
diff --git a/user_guide/installation/upgrade_140.html b/user_guide/installation/upgrade_140.html
index 09236260e..3418b726f 100644
--- a/user_guide/installation/upgrade_140.html
+++ b/user_guide/installation/upgrade_140.html
@@ -62,7 +62,7 @@ Upgrading from 1.3.3 to 1.4.0
<h1>Upgrading from 1.3.3 to 1.4.0</h1>
-<p class="important"><strong>Note:</strong> The instructions on this page assume you are running version 1.3.2. If you
+<p class="important"><strong>Note:</strong> The instructions on this page assume you are running version 1.3.3. If you
have not upgraded to that version please do so first.</p>
<p>Before performing an update you should take your site offline by replacing the index.php file with a static one.</p>