Skip to content

Commit

Permalink
* Controller.php merge conflict solved.
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandocarletti committed May 27, 2011
1 parent ee1b049 commit 8895cd2
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions classes/korty/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,15 @@ public function after()
{
foreach($controller as $controller_name => $action_name)
{
<<<<<<< HEAD
<<<<<<< HEAD
if($this->request->controller == $controller_name AND $this->request->action == $action_name)
{
=======
if($this->request->controller() == $controller_name AND $this->request->action() == $action_name) {
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
=======
if($this->request->controller() == $controller_name AND $this->request->action() == $action_name) {
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
$ignore_autoload = TRUE;
break;
}
}
}
else
{
<<<<<<< HEAD
<<<<<<< HEAD
if($this->request->controller == $controller)
{
=======
if($this->request->controller() == $controller) {
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
=======
if($this->request->controller() == $controller) {
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
$ignore_autoload = TRUE;
break;
}
Expand All @@ -77,15 +59,7 @@ public function after()
if( ! $ignore_autoload)
{
// The layout organization format
<<<<<<< HEAD
<<<<<<< HEAD
$template_file = $this->request->controller.'/'.$this->request->action.'.tpl';
=======
$template = $this->request->controller().'/'.$this->request->action().'.tpl';
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
=======
$template = $this->request->controller().'/'.$this->request->action().'.tpl';
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
$template_file = $this->request->controller().'/'.$this->request->action().'.tpl';

// Load only if template exists
if($this->korty->templateExists($template_file))
Expand All @@ -99,16 +73,8 @@ public function after()
// If some template was loaded before by korty::render(), we don't need to warn about missing template =]
if(!isset($this->request->korty_rendered))
{
<<<<<<< HEAD
<<<<<<< HEAD
$message = "Template for {$this->request->controller}#{$this->request->action} not found!\n"
. "Did you forgot to create the {$template_file} file?";
=======
=======
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
$message = "Template for {$this->request->controller()}#{$this->request->action()} not found!\n"
. "Did you forgot to create the {$template} file?";
>>>>>>> 35ba21db297c94506125835337cd30bc184c85fc
. "Did you forgot to create the {$template_file} file?";

throw new Kohana_Exception($message);
}
Expand Down

0 comments on commit 8895cd2

Please sign in to comment.