Some minor adjustments
authorAlexander Ebert <ebert@woltlab.com>
Sun, 29 Nov 2015 12:05:13 +0000 (13:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 29 Nov 2015 12:05:13 +0000 (13:05 +0100)
wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
wcfsetup/install/files/lib/data/page/Page.class.php
wcfsetup/install/files/lib/data/page/PageAction.class.php
wcfsetup/install/files/lib/data/page/PageEditor.class.php

index c90d5d66a00ece8f557327a782223dd9c1a0e049..0a2aa524b7d1e87cce386e09678d3267809b34da 100644 (file)
@@ -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
index 3a05195a8719cef2dd741b13bf88b04dd91b243c..32ceabb31075dcf570446580482e1ee710b4b6f8 100644 (file)
@@ -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  *
index d2303668047cbbb204f4d9ffbc08daf3de9058bb..79b1bce65943556a9d27d64c3adcc103ea79070e 100644 (file)
@@ -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
index c649c9a04dec0bcf11a93f005cddbb99d5e66ad9..d6ab4b40761e78cf85062c57350b683054d6213d 100644 (file)
@@ -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;
 }