]> git.andy128k.dev Git - ipf.git/commitdiff
fix admin app detection
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 30 Dec 2017 14:03:15 +0000 (15:03 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 30 Dec 2017 14:03:15 +0000 (15:03 +0100)
ipf/admin/app.php

index b4e97cd35fa82ce093a9c5740a5ab73a69428c53..38d6a13d19d2ef5b5ec87a18844ff5a71ca3519b 100644 (file)
@@ -115,7 +115,7 @@ class IPF_Admin_App extends IPF_Application
 
     public function getComponentBySlugs($appSlug, $componentSlug)
     {
-        $app = $this->getProject()->getApplicationBySlug($appSlug);
+        $app = $this->getApplicationBySlug($appSlug);
         if (!$app)
             return null;
         foreach ($this->applicationComponents($app) as $component) {