mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
13 lines
371 B
PHP
13 lines
371 B
PHP
<?php
|
|
class CMSPageEditController extends CMSMain {
|
|
|
|
static $url_segment = 'page/edit';
|
|
static $url_rule = '/$Action/$ID/$OtherID';
|
|
static $url_priority = 41;
|
|
|
|
function getEditForm($id = null, $fields = null) {
|
|
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
|
return parent::getEditForm($record, ($record) ? $record->getCMSFields() : null);
|
|
}
|
|
|
|
} |