Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified LICENCE.TXT
100644 → 100755
Empty file.
Empty file modified assets/author_roles.css
100644 → 100755
Empty file.
Empty file modified assets/author_roles.js
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions content/content.index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ function __construct(){
* Build the page
* @param array $context
*/
public function build($context)
public function build(array $context = Array())
{
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)
Expand Down Expand Up @@ -118,4 +118,4 @@ public function __viewIndex()
$this->Form->appendChild($tableActions);
}
}
?>
?>
4 changes: 2 additions & 2 deletions content/content.roles.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function __construct(){
$this->_driver = Symphony::ExtensionManager()->create('author_roles');
}

public function build($context)
public function build(array $context = Array())
{
$this->_action = isset($context[0]) ? $context[0] : false;
if($this->_action == 'edit' && isset($context[1]) && is_numeric($context[1]))
Expand Down Expand Up @@ -278,4 +278,4 @@ private function getValue($item_name)
}
}
}
?>
?>
Loading