diff --git a/module/install/control.php b/module/install/control.php index ddc9bcc88e..e6002ab2a7 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -416,10 +416,10 @@ class install extends control $this->lang->install->successNoticeLabel = str_replace('IPD', '', $this->lang->install->successNoticeLabel); $this->config->version = $editionName . str_replace(array('max', 'biz', 'ipd'), '', $this->config->version); } - elseif(strpos($this->config->version, 'ipd') === false) + elseif($this->config->edition != 'ipd') { $editionName = $this->config->edition === 'open' ? $this->lang->pmsName : $this->lang->{$this->config->edition . 'Name'}; - $this->config->version = $editionName . str_replace(array('max', 'biz'), '', $this->config->version); + $this->config->version = $editionName . str_replace(array('max', 'biz', 'ipd'), '', $this->config->version); } $canDelFile = is_writable($this->app->getAppRoot() . 'www');