From d508e42e04e3fd7eb4d944d06b10e77c6b7beeb1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 29 Nov 2015 13:05:13 +0100 Subject: [PATCH] Some minor adjustments --- wcfsetup/install/files/lib/acp/form/PageAddForm.class.php | 4 ++-- wcfsetup/install/files/lib/data/page/Page.class.php | 2 +- wcfsetup/install/files/lib/data/page/PageAction.class.php | 2 +- wcfsetup/install/files/lib/data/page/PageEditor.class.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.20.1