From 6df2e7432398929f6a84cca9db1fe1e1bd4f27af Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 2 Nov 2010 19:22:50 +0000 Subject: [PATCH] MINOR Fixed regression from r113282 for changed SecurityToken API in CMSMain->publishall() (fixes #6159) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@113360 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index d00145d2..b7d65d8e 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -1274,6 +1274,10 @@ JS; } else { $token = SecurityToken::inst(); + $fields = new FieldSet(); + $token->updateFieldSet($fields); + $tokenField = $fields->First(); + $tokenHtml = ($tokenField) ? $tokenField->FieldHolder() : ''; $response .= '

' . _t('CMSMain.PUBALLFUN','"Publish All" functionality') . '

' . _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 @@ -1281,7 +1285,7 @@ JS;

' - . $token->getFormField()->FieldHolder() . + . $tokenHtml . '
'; }