mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Compare commits
2 Commits
e279785301
...
dc43d36d62
Author | SHA1 | Date | |
---|---|---|---|
|
dc43d36d62 | ||
|
6194844f61 |
@ -60,7 +60,7 @@ class ModelAsController extends Controller implements NestedController
|
||||
Director::absoluteBaseURL(),
|
||||
'dev/build',
|
||||
'?' . http_build_query([
|
||||
'returnURL' => isset($_GET['url']) ? $_GET['url'] : null,
|
||||
'BackURL' => isset($_GET['url']) ? $_GET['url'] : null,
|
||||
])
|
||||
));
|
||||
}
|
||||
@ -81,7 +81,7 @@ class ModelAsController extends Controller implements NestedController
|
||||
|
||||
// If the database has not yet been created, redirect to the build page.
|
||||
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) {
|
||||
$this->getResponse()->redirect(Controller::join_links(Director::absoluteBaseURL(), 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)));
|
||||
$this->getResponse()->redirect(Controller::join_links(Director::absoluteBaseURL(), 'dev/build?BackURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)));
|
||||
$this->popCurrent();
|
||||
|
||||
return $this->getResponse();
|
||||
|
@ -78,7 +78,7 @@ class RootURLController extends Controller implements Resettable
|
||||
Director::absoluteBaseURL(),
|
||||
'dev/build',
|
||||
'?' . http_build_query([
|
||||
'returnURL' => isset($_GET['url']) ? $_GET['url'] : null,
|
||||
'BackURL' => isset($_GET['url']) ? $_GET['url'] : null,
|
||||
])
|
||||
));
|
||||
}
|
||||
@ -91,7 +91,7 @@ class RootURLController extends Controller implements Resettable
|
||||
|
||||
if (!$this->getResponse()->isFinished()) {
|
||||
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) {
|
||||
$this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null));
|
||||
$this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?BackURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null));
|
||||
return $this->getResponse();
|
||||
}
|
||||
|
||||
|
@ -1454,7 +1454,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
|
||||
$tags['title'] = [
|
||||
'tag' => 'title',
|
||||
'content' => $this->obj('Title')->forTemplate()
|
||||
'content' => $this->obj('Title')?->forTemplate()
|
||||
];
|
||||
|
||||
$generator = $this->getGenerator();
|
||||
@ -1601,7 +1601,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
|
||||
$tagString = implode("\n", $tags);
|
||||
if ($this->ExtraMeta) {
|
||||
$tagString .= $this->obj('ExtraMeta')->forTemplate();
|
||||
$tagString .= $this->obj('ExtraMeta')?->forTemplate();
|
||||
}
|
||||
|
||||
$this->extend('updateMetaTags', $tagString);
|
||||
|
Loading…
Reference in New Issue
Block a user