Skip to content

Commit

Permalink
MINOR PHP Notice in CMSMain
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92704 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent 9794b83 commit 40e3f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function addpage($data, $form) {
if($parentObj && !$parentObj->canAddChildren()) return Security::permissionFailure($this);
if(!singleton($className)->canCreate()) return Security::permissionFailure($this);

$p = $this->getNewItem("new-$className-$parent".$suffix, false);
$p = $this->getNewItem("new-$className-$parentID".$suffix, false);
$p->Locale = $data['Locale'];
$p->write();

Expand Down

0 comments on commit 40e3f96

Please sign in to comment.