Permalink
Browse files

Trivial style tweaks.

  • Loading branch information...
1 parent ec288b8 commit bc2702c1713dce38496e9b3018abecf093764d17 Phil Sturgeon committed Oct 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 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)

0 comments on commit bc2702c

Please sign in to comment.