Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 58cd7beb33d5a79b77db0435ead858af76e6e99e 1 parent c9c67d4
@chillu chillu authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 code/CMSMain.php
View
6 code/CMSMain.php
@@ -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 @@ public function getEditForm($id = null) {
// 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 @@ function AddForm() {
);
$actions = new FieldSet(
- new FormAction("addpage", _t('CMSMain.GO',"Go"))
+ new FormAction("doAdd", _t('CMSMain.GO',"Go"))
);
$form = new Form($this, "AddForm", $fields, $actions);
Please sign in to comment.
Something went wrong with that request. Please try again.