code/Controllers/ModelAsController.php 1 location
|
@@ 91-96 (lines=6) @@
|
| 88 |
|
|
| 89 |
|
// If the database has not yet been created, redirect to the build page. |
| 90 |
|
/** @skipUpgrade */ |
| 91 |
|
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) { |
| 92 |
|
$this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)); |
| 93 |
|
$this->popCurrent(); |
| 94 |
|
|
| 95 |
|
return $this->getResponse(); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
try { |
| 99 |
|
$result = $this->getNestedController(); |
code/Controllers/RootURLController.php 1 location
|
@@ 136-139 (lines=4) @@
|
| 133 |
|
|
| 134 |
|
if (!$this->getResponse()->isFinished()) { |
| 135 |
|
/** @skipUpgrade */ |
| 136 |
|
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) { |
| 137 |
|
$this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)); |
| 138 |
|
return $this->getResponse(); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
$request->setUrl(self::get_homepage_link() . '/'); |
| 142 |
|
$request->match('$URLSegment//$Action', true); |