Skip to content

Commit

Permalink
Fix problem after nette 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
1josefnevoral committed Jul 22, 2014
1 parent cc36ce6 commit 45814fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/config/config.services.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
logger: HQ\Logger
dbChangelog:
class: ChangelogModule\DbChangelog
arguments: [@nette.database.default, @nette.database.default::table(changelog), %appDir%]
arguments: [@nette.database.default.context, @nette.database.default.context::table(changelog), %appDir%]
errorMessageService: HQ\Api\ErrorMessageService
s3Proxy: HQ\Aws\S3Proxy(%aws%)
s3DataSource: HQ\ErrorMonitorinq\Datasource\S3DataSource(%tempDir%, ...)
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/SecuredPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function startup(){
$user = $this->getUser();
$backlink = $this->storeRequest();

if(!$this->context->params['productionMode'] && ($this->name == "Changelog:Changelog" || $this->name == 'Secured') ){
if(!$this->context->parameters['productionMode'] && ($this->name == "Changelog:Changelog" || $this->name == 'Secured') ){
// User can run changelog
} else {
// Ckecks if user is logged in, if not, redirect him to log in page
Expand Down

0 comments on commit 45814fb

Please sign in to comment.