mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Fixed regression from r113282 for changed SecurityToken API in CMSMain->publishall() (fixes #6159) (from r113360)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@113361 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d91759d958
commit
dca8b98e72
@ -1052,6 +1052,10 @@ JS;
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
$token = SecurityToken::inst();
|
$token = SecurityToken::inst();
|
||||||
|
$fields = new FieldSet();
|
||||||
|
$token->updateFieldSet($fields);
|
||||||
|
$tokenField = $fields->First();
|
||||||
|
$tokenHtml = ($tokenField) ? $tokenField->FieldHolder() : '';
|
||||||
$response .= '<h1>' . _t('CMSMain.PUBALLFUN','"Publish All" functionality') . '</h1>
|
$response .= '<h1>' . _t('CMSMain.PUBALLFUN','"Publish All" functionality') . '</h1>
|
||||||
<p>' . _t('CMSMain.PUBALLFUN2', 'Pressing this button will do the equivalent of going to every page and pressing "publish". It\'s
|
<p>' . _t('CMSMain.PUBALLFUN2', 'Pressing this button will do the equivalent of going to every page and pressing "publish". It\'s
|
||||||
intended to be used after there have been massive edits of the content, such as when the site was
|
intended to be used after there have been massive edits of the content, such as when the site was
|
||||||
@ -1059,7 +1063,7 @@ JS;
|
|||||||
<form method="post" action="publishall">
|
<form method="post" action="publishall">
|
||||||
<input type="submit" name="confirm" value="'
|
<input type="submit" name="confirm" value="'
|
||||||
. _t('CMSMain.PUBALLCONFIRM',"Please publish every page in the site, copying content stage to live",PR_LOW,'Confirmation button') .'" />'
|
. _t('CMSMain.PUBALLCONFIRM',"Please publish every page in the site, copying content stage to live",PR_LOW,'Confirmation button') .'" />'
|
||||||
. $token->getFormField()->FieldHolder() .
|
. $tokenHtml .
|
||||||
'</form>';
|
'</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user