Skip to content

Commit

Permalink
Remove call to undefined method getClass in systemMessages controller
Browse files Browse the repository at this point in the history
Merge pull request #6 from p0lemic/remove-call-to-undefined-method-get-class
  • Loading branch information
p0lemic authored May 20, 2020
2 parents 0bd4b5d + a8beb91 commit 0e5089b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions controllers/shared/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public function build()

$params = $this->getParams();
$this->assign( 'path', $params['path'] );
$this->getClass( 'Metadata', false );

if ( null == \Sifo\Metadata::get() )
{
Expand Down Expand Up @@ -65,4 +64,4 @@ protected function assignMedia()
$this->assign( 'media_module', $this->fetch( 'shared/media_packer.tpl' ) );

}
}
}
3 changes: 1 addition & 2 deletions controllers/shared/systemMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ class SharedSystemMessagesController extends \Sifo\Controller
{
public function build()
{
$this->getClass( 'FlashMessages', false );
$this->setLayout( 'shared/system_messages.tpl' );

$this->assign( 'info_messages', \Sifo\FlashMessages::get( \Sifo\FlashMessages::MSG_INFO ) );
$this->assign( 'ok_messages', \Sifo\FlashMessages::get( \Sifo\FlashMessages::MSG_OK ) );
$this->assign( 'warning_messages', \Sifo\FlashMessages::get( \Sifo\FlashMessages::MSG_WARNING ) );
$this->assign( 'ko_messages', \Sifo\FlashMessages::get( \Sifo\FlashMessages::MSG_KO ) );
}
}
}

0 comments on commit 0e5089b

Please sign in to comment.