diff --git a/content/content.index.php b/content/content.index.php index 71b033f..5e4c251 100644 --- a/content/content.index.php +++ b/content/content.index.php @@ -21,7 +21,7 @@ function __construct(){ */ public function build($context) { - if(Administration::instance()->Author->isDeveloper()) { + if(Administration::instance()->Author()->isDeveloper()) { if($_POST['with-selected'] == 'delete' && is_array($_POST['items'])) { foreach($_POST['items'] as $id_role => $value) @@ -118,4 +118,4 @@ public function __viewIndex() $this->Form->appendChild($tableActions); } } -?> \ No newline at end of file +?> diff --git a/extension.driver.php b/extension.driver.php index b521cba..77d75d0 100644 --- a/extension.driver.php +++ b/extension.driver.php @@ -580,7 +580,7 @@ private function adjustEntryEditor($context, $callback) { */ private function getCurrentAuthorRoleData() { if(Administration::instance()->isLoggedIn()) { - $id_author = Administration::instance()->Author->get('id'); + $id_author = Administration::instance()->Author()->get('id'); $id_role = $this->getAuthorRole($id_author); if($id_role != false) { diff --git a/extension.meta.xml b/extension.meta.xml index 0e2920b..45397fa 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -1,4 +1,4 @@ - + Author Roles Add Roles to Symphony @@ -21,5 +21,6 @@ to Symphony to make sure the 'Author Roles'-extension is executed as last, after all other extensions have made their possible modifications to the navigation. Read the readme for more details. +