From dca8b98e7284f34d6178d0da46d76440e0c4e33f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 2 Nov 2010 19:23:27 +0000 Subject: [PATCH] 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 --- code/CMSMain.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 7df9b7ea..8145881c 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -1052,6 +1052,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 @@ -1059,7 +1063,7 @@ JS;

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