Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
- Environment::isLocal() substituted by Environment::isLive()
Browse files Browse the repository at this point in the history
- Nette::Debug minor refactoring
  • Loading branch information
dg committed Oct 10, 2010
1 parent 49b663d commit d9b17c0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Modules-Usage/app/presenters/BasePresenter.php
Expand Up @@ -7,16 +7,14 @@ abstract class BasePresenter extends /*Nette::Application::*/Presenter
protected function beforeRender()
{
$this->template->registerFilter(/*Nette::Application::*/'TemplateFilters::curlyBrackets');

$this->template->view = $this->view;
$presenter = $this->request->presenterName;
$a = strrpos($presenter, ':');
$a = strrpos($this->name, ':');
if ($a === FALSE) {
$this->template->module = '';
$this->template->presenter = $presenter;
$this->template->presenter = $this->name;
} else {
$this->template->module = substr($presenter, 0, $a + 1);
$this->template->presenter = substr($presenter, $a + 1);
$this->template->module = substr($this->name, 0, $a + 1);
$this->template->presenter = substr($this->name, $a + 1);
}
}

Expand Down

0 comments on commit d9b17c0

Please sign in to comment.