+ // @todo: Remove this magic and detect the major version instead.
+ if ($install_path == 'core') {
+ $install_path = null;
+ } elseif (substr($install_path, -5) == '/core') {
+ $install_path = substr($install_path, 0, -5);
+ }
+ $this->drupalRoot = rtrim($path . '/' . $install_path, '/');