Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/core/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function model($model, $name = '', $db_conn = FALSE)
$db_conn = '';
}

$this->database($db_conn, FALSE, TRUE);
$this->database($db_conn);
}

// Note: All of the code under this condition used to be just:
Expand Down
3 changes: 1 addition & 2 deletions user_guide_src/source/libraries/loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,10 @@ Class Reference
$this->load->model('model_name', 'fubar');
$this->fubar->method();

.. php:method:: database([$params = ''[, $return = FALSE[, $query_builder = NULL]]])
.. php:method:: database([$params = ''[, $return = FALSE]])

:param mixed $params: Database group name or configuration options
:param bool $return: Whether to return the loaded database object
:param bool $query_builder: Whether to load the Query Builder
:returns: Loaded CI_DB instance or FALSE on failure if $return is set to TRUE, otherwise CI_Loader instance (method chaining)
:rtype: mixed

Expand Down