Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Trivial style tweaks.

  • Loading branch information...
commit bc2702c1713dce38496e9b3018abecf093764d17 1 parent ec288b8
@philsturgeon philsturgeon authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 system/core/Loader.php
View
6 system/core/Loader.php
@@ -252,7 +252,7 @@ public function library($library = '', $params = NULL, $object_name = NULL)
* @param boolean FALSE to skip calling controller method
* @return boolean TRUE on success, otherwise FALSE
*/
- public function controller($route, $name = '', $call = TRUE)
+ public function controller($route, $name = NULL, $call = TRUE)
{
// Check for missing class
if (empty($route))
@@ -317,14 +317,14 @@ public function controller($route, $name = '', $call = TRUE)
if (file_exists($file))
{
// Include class source
- include($file);
+ include $file;
break;
}
}
// Check for subclass
$pre = $this->CI->config->item('subclass_prefix');
- if (!empty($pre))
+ if ( ! empty($pre))
{
// Locate subclass
foreach ($this->_ci_mvc_paths as $mvc_path => $cascade)
Please sign in to comment.
Something went wrong with that request. Please try again.