mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Renamed CMSMain->addpage() to CMSMain->doAdd()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92800 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c9c67d4ae6
commit
58cd7beb33
@ -28,7 +28,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
|
||||
static $allowed_actions = array(
|
||||
'addmember',
|
||||
'addpage',
|
||||
'doAdd',
|
||||
'buildbrokenlinks',
|
||||
'compareversions',
|
||||
'createtranslation',
|
||||
@ -404,7 +404,7 @@ JS;
|
||||
// Data saving handlers
|
||||
|
||||
|
||||
public function addpage($data, $form) {
|
||||
public function doAdd($data, $form) {
|
||||
$className = isset($data['PageType']) ? $data['PageType'] : "Page";
|
||||
$parentID = isset($data['ParentID']) ? (int)$data['ParentID'] : 0;
|
||||
$suffix = isset($data['Suffix']) ? "-" . $data['Suffix'] : null;
|
||||
@ -1029,7 +1029,7 @@ JS;
|
||||
);
|
||||
|
||||
$actions = new FieldSet(
|
||||
new FormAction("addpage", _t('CMSMain.GO',"Go"))
|
||||
new FormAction("doAdd", _t('CMSMain.GO',"Go"))
|
||||
);
|
||||
|
||||
$form = new Form($this, "AddForm", $fields, $actions);
|
||||
|
Loading…
Reference in New Issue
Block a user