diff options
author | admin <devnull@localhost> | 2006-10-24 02:15:02 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-24 02:15:02 +0200 |
commit | 2b47ea414625b77a5694419f6905927d614e3e3b (patch) | |
tree | b020a68411ac35c6767da9f707fc6c61a47e12fd | |
parent | c75b09fd0d96a3871a8b02cbf0182d09b80d96e4 (diff) |
-rw-r--r-- | system/application/errors/error_php.php | 2 | ||||
-rw-r--r-- | system/libraries/Controller.php | 2 | ||||
-rw-r--r-- | system/libraries/Loader.php | 16 | ||||
-rw-r--r-- | user_guide/changelog.html | 7 |
4 files changed, 14 insertions, 13 deletions
diff --git a/system/application/errors/error_php.php b/system/application/errors/error_php.php index 9bba5b8cb..f085c2037 100644 --- a/system/application/errors/error_php.php +++ b/system/application/errors/error_php.php @@ -7,4 +7,4 @@ <p>Filename: <?php echo $filepath; ?></p> <p>Line Number: <?php echo $line; ?></p> -</div> +</div>
\ No newline at end of file diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php index b1feee86c..922382ab7 100644 --- a/system/libraries/Controller.php +++ b/system/libraries/Controller.php @@ -32,8 +32,6 @@ class Controller extends CI_Base { var $_ci_scaffolding = FALSE; var $_ci_scaff_table = FALSE; - - /** * Constructor * diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index aaeee7f6b..7c42123f5 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -181,8 +181,17 @@ class CI_Loader { return DB($params, $active_record); } + // Grab the super object $CI =& get_instance(); - $CI->db =& DB($params, $active_record); + + // Initialize the db variable. Needed to prevent + // reference errors with some configurations + $CI->db = ''; + + // Load the DB class + $CI->db =& DB($params, $active_record); + + // Assign the DB object to any existing models $this->_ci_assign_to_models(); } @@ -828,11 +837,6 @@ class CI_Loader { */ function _ci_assign_to_models() { - if (count($this->_ci_models) == 0) - { - return; - } - if ($this->_ci_is_instance()) { $CI =& get_instance(); diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 8ad7fefaa..258216e4b 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -64,10 +64,7 @@ Change Log <h2>Version 1.5.0 Beta 3</h2>
-<p>Release Date: October 19, 2006</p>
-
-<p class="important"><strong>Important:</strong> In Beta 3, the way native libraries are extended has changed slightly thanks to
-a suggestion offered by coolfactor in our forums. Please check the documentation below if you are extending classes.</p>
+<p>Release Date: October 25, 2006</p>
<ul>
<li>Added <a href="./database/utilities.html">DB utility class</a>, permitting DB backups, CVS or XML files from DB results, and various other functions.</li>
@@ -95,6 +92,8 @@ a suggestion offered by coolfactor in our forums. Please check the documentatio <li>Fixed a bug in the Email class related to SMTP Helo data.</li>
<li>Fixed a bug in the validation class.</li>
<li>Fixed a bug in the typography helper that was incorrectly wrapping block level elements in paragraph tags.</li>
+<li>Fixed a problem in the form_prep() function that was double encoding entities.</li>
+<li>Fixed a bug that affects some versions of PHP when output buffering is nested.</li>
<li><strong>Deprecated "init" folder</strong>. Initialization happens automatically now. <a href="creating_libraries.html">Please see documentation</a>.</li>
<li><strong>Deprecated</strong> $this->db->field_names() USE $this->db->list_fields()</li>
<li><strong>Deprecated</strong> the <dfn>$config['log_errors']</dfn> item from the config.php file. Instead, <dfn>$config['log_threshold']</dfn> can be set to "0" to turn it off.</li>
|