@@ 73-78 (lines=6) @@ | ||
70 | } |
|
71 | ||
72 | // If the database has not yet been created, redirect to the build page. |
|
73 | if(!DB::is_active() || !ClassInfo::hasTable('SiteTree')) { |
|
74 | $this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)); |
|
75 | $this->popCurrent(); |
|
76 | ||
77 | return $this->getResponse(); |
|
78 | } |
|
79 | ||
80 | try { |
|
81 | $result = $this->getNestedController(); |
@@ 135-138 (lines=4) @@ | ||
132 | $this->beforeHandleRequest($request, $model); |
|
133 | ||
134 | if (!$this->getResponse()->isFinished()) { |
|
135 | if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) { |
|
136 | $this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)); |
|
137 | return $this->getResponse(); |
|
138 | } |
|
139 | ||
140 | $request->setUrl(self::get_homepage_link() . '/'); |
|
141 | $request->match('$URLSegment//$Action', true); |