mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00: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(
|
static $allowed_actions = array(
|
||||||
'addmember',
|
'addmember',
|
||||||
'addpage',
|
'doAdd',
|
||||||
'buildbrokenlinks',
|
'buildbrokenlinks',
|
||||||
'compareversions',
|
'compareversions',
|
||||||
'createtranslation',
|
'createtranslation',
|
||||||
@ -404,7 +404,7 @@ JS;
|
|||||||
// Data saving handlers
|
// Data saving handlers
|
||||||
|
|
||||||
|
|
||||||
public function addpage($data, $form) {
|
public function doAdd($data, $form) {
|
||||||
$className = isset($data['PageType']) ? $data['PageType'] : "Page";
|
$className = isset($data['PageType']) ? $data['PageType'] : "Page";
|
||||||
$parentID = isset($data['ParentID']) ? (int)$data['ParentID'] : 0;
|
$parentID = isset($data['ParentID']) ? (int)$data['ParentID'] : 0;
|
||||||
$suffix = isset($data['Suffix']) ? "-" . $data['Suffix'] : null;
|
$suffix = isset($data['Suffix']) ? "-" . $data['Suffix'] : null;
|
||||||
@ -1029,7 +1029,7 @@ JS;
|
|||||||
);
|
);
|
||||||
|
|
||||||
$actions = new FieldSet(
|
$actions = new FieldSet(
|
||||||
new FormAction("addpage", _t('CMSMain.GO',"Go"))
|
new FormAction("doAdd", _t('CMSMain.GO',"Go"))
|
||||||
);
|
);
|
||||||
|
|
||||||
$form = new Form($this, "AddForm", $fields, $actions);
|
$form = new Form($this, "AddForm", $fields, $actions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user