| @@ -71,8 +71,15 @@ | ||
| 71 | 71 | * put your comment there... |
| 72 | 72 | * |
| 73 | 73 | */ |
| 74 | 74 | protected function installAction() { |
| 75 | + // Initialize. | |
| 76 | + $model = $this->getModel('installer'); | |
| 77 | + // Do fresh installation if the installed version and the | |
| 78 | + // current version doesn't share the same release and edition signs. | |
| 79 | + if ($model->isUpgrade() && $model->isCommonRelease()) { | |
| 80 | + $this->request['layout'] = 'upgrade'; | |
| 81 | + } | |
| 75 | 82 | echo parent::displayAction(); |
| 76 | 83 | } |
| 77 | 84 | |
| 78 | 85 | /** |