| @@ -50,11 +50,13 @@ | ||
| 50 | 50 | * put your comment there... |
| 51 | 51 | * |
| 52 | 52 | */ |
| 53 | 53 | public function main() { |
| 54 | - // Run the coupling! | |
| 55 | - $this->controllerName = 'blocks-coupling'; | |
| 56 | - $this->route(); | |
| 54 | + // Run the coupling only if installed! | |
| 55 | + if (CJTPlugin::getInstance()->isInstalled()) { | |
| 56 | + $this->controllerName = 'blocks-coupling'; | |
| 57 | + $this->route(false); | |
| 58 | + } | |
| 57 | 59 | // Run all the aother access points! |
| 58 | 60 | CJTPlugin::getInstance()->listen(); |
| 59 | 61 | } |
| 60 | 62 | |
| @@ -66,9 +68,9 @@ | ||
| 66 | 68 | // Get the only instance we've for the main access point! |
| 67 | 69 | $mainAccessPointObject = self::$instance; |
| 68 | 70 | // Load default controller! |
| 69 | 71 | $mainAccessPointObject->controllerName = 'default'; |
| 70 | - $controller = $mainAccessPointObject->route() | |
| 72 | + $controller = $mainAccessPointObject->route(false) | |
| 71 | 73 | // Fire uninstall action! |
| 72 | 74 | ->setAction('uninstall') |
| 73 | 75 | ->_doAction(); |
| 74 | 76 | return $controller; |