From: Alexander Ebert Date: Sun, 29 Nov 2015 12:05:13 +0000 (+0100) Subject: Some minor adjustments X-Git-Tag: 3.0.0_Beta_1~2030^2~229 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d508e42e04e3fd7eb4d944d06b10e77c6b7beeb1;p=GitHub%2FWoltLab%2FWCF.git Some minor adjustments --- diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php index c90d5d66a0..0a2aa524b7 100644 --- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php @@ -223,13 +223,13 @@ class PageAddForm extends AbstractForm { 'packageID' => ($this->packageID ?: null), 'lastUpdateTime' => TIME_NOW, 'isMultilingual' => $this->isMultilingual, - 'name' => '' + 'identifier' => '' ]), 'content' => $content]); $returnValues = $this->objectAction->executeAction(); // set generic page name $pageEditor = new PageEditor($returnValues['returnValues']); $pageEditor->update([ - 'name' => 'com.woltlab.wcf.generic'.$pageEditor->pageID + 'identifier' => 'com.woltlab.wcf.generic'.$pageEditor->pageID ]); // call saved event diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index 3a05195a87..32ceabb310 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -79,7 +79,7 @@ class Page extends DatabaseObject { * Returns the page with the given display name. * * @param string $name - * @return \wcf\data\page\Page + * @return Page */ public static function getPageByDisplayName($name) { $sql = "SELECT * diff --git a/wcfsetup/install/files/lib/data/page/PageAction.class.php b/wcfsetup/install/files/lib/data/page/PageAction.class.php index d230366804..79b1bce659 100644 --- a/wcfsetup/install/files/lib/data/page/PageAction.class.php +++ b/wcfsetup/install/files/lib/data/page/PageAction.class.php @@ -19,7 +19,7 @@ class PageAction extends AbstractDatabaseObjectAction implements IToggleAction { /** * @see \wcf\data\AbstractDatabaseObjectAction::$className */ - protected $className = 'wcf\data\page\PageEditor'; + protected $className = PageEditor::class; /** * @see \wcf\data\AbstractDatabaseObjectAction::$permissionsCreate diff --git a/wcfsetup/install/files/lib/data/page/PageEditor.class.php b/wcfsetup/install/files/lib/data/page/PageEditor.class.php index c649c9a04d..d6ab4b4076 100644 --- a/wcfsetup/install/files/lib/data/page/PageEditor.class.php +++ b/wcfsetup/install/files/lib/data/page/PageEditor.class.php @@ -16,5 +16,5 @@ class PageEditor extends DatabaseObjectEditor { /** * @see \wcf\data\DatabaseObjectDecorator::$baseClass */ - protected static $baseClass = 'wcf\data\page\Page'; + protected static $baseClass = Page::class; }