@@ 226-228 (lines=3) @@ | ||
223 | ||
224 | // has to be installed |
|
225 | $file = $locator->getPathToConfigFile(); |
|
226 | if (!file_exists($file) || !is_file($file)){ |
|
227 | throw new \RuntimeException('ownCloud in ' . dirname(dirname($file)) . ' is not installed.'); |
|
228 | } |
|
229 | ||
230 | // version.php should exist |
|
231 | $file = $locator->getPathToVersionFile(); |
|
@@ 232-234 (lines=3) @@ | ||
229 | ||
230 | // version.php should exist |
|
231 | $file = $locator->getPathToVersionFile(); |
|
232 | if (!file_exists($file) || !is_file($file)){ |
|
233 | throw new \RuntimeException('ownCloud is not found in ' . dirname($file)); |
|
234 | } |
|
235 | ||
236 | // datadir should exist |
|
237 | $dataDir = $locator->getDataDir(); |