public function on_start()
 {
     parent::on_start();
     if (!Config::get('concrete.user.profiles_enabled')) {
         $this->replace('/page_not_found');
     }
 }
 public function on_start()
 {
     parent::on_start();
     if (!defined('ENABLE_USER_PROFILES') || !ENABLE_USER_PROFILES) {
         $this->render('/page_not_found');
     }
 }
 public function on_start()
 {
     parent::on_start();
     $site = \Core::make('site')->getSite();
     $config = $site->getConfigRepository();
     if (!$config->get('user.profiles_enabled')) {
         $this->replace('/page_not_found');
     }
 }
Exemplo n.º 4
0
 public function setPassThruBlockController(PageController $controller)
 {
     $controller->setPassThruBlockController($this->block, $this);
 }
Exemplo n.º 5
0
 public function __construct(\Concrete\Core\Page\Page $c)
 {
     parent::__construct($c);
     // Source: https://gist.github.com/Kaapiii/fe892b5a95b4a4f61280
     $this->blogService = new BlogService(\ORM::entityManager());
 }
Exemplo n.º 6
0
 public function request($key = null)
 {
     return parent::request($key);
 }