Skip to content

Commit

Permalink
Update login.ctp
Browse files Browse the repository at this point in the history
  • Loading branch information
backstageel committed Feb 14, 2017
1 parent 6b8d997 commit 221dfbe
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Template/Users/login.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<?php
$file = '';
if($this->plugin){
$file = ROOT . DS . 'plugins'.DS.$this->plugin.DS.'src' . DS . 'Template' . DS . 'Users' . DS . 'login.ctp';
}
if(!file_exists($file)){
$file = ROOT . DS . 'src' . DS . 'Template' . DS . 'Users' . DS . 'login.ctp';
}

if (file_exists($file)) {
ob_start();
include_once $file;
echo ob_get_clean();
} else {
?>
<div>
<div class="login_wrapper">
<div class="animate form login_form">
Expand Down Expand Up @@ -30,4 +45,5 @@
</section>
</div>
</div>
</div>
</div>
<?php } ?>

0 comments on commit 221dfbe

Please sign in to comment.