File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,9 +36,15 @@ protected function setRoundcubemailInstallPath(InstalledRepositoryInterface $ins
3636
3737 if ($ roundcubemailPackage === $ rootPackage ) { // $this->getInstallPath($package) does not work for root package
3838 $ this ->initializeVendorDir ();
39- $ this -> roundcubemailInstallPath = dirname ($ this ->vendorDir );
39+ $ installPath = dirname ($ this ->vendorDir );
4040 } else {
41- $ this ->roundcubemailInstallPath = $ this ->getInstallPath ($ roundcubemailPackage );
41+ $ installPath = $ this ->getInstallPath ($ roundcubemailPackage );
42+ }
43+
44+ if ($ this ->roundcubemailInstallPath === null ) {
45+ $ this ->roundcubemailInstallPath = $ installPath ;
46+ } elseif ($ this ->roundcubemailInstallPath !== $ installPath ) {
47+ throw new \Exception ('Install path of "roundcube/roundcubemail" package has unexpectedly changed ' );
4248 }
4349 }
4450
You can’t perform that action at this time.
0 commit comments