diff --git a/index.php b/index.php index c4f1ad6d..0ba8d6f6 100644 --- a/index.php +++ b/index.php @@ -74,6 +74,8 @@ else { '/^account\/character\/comment\/[A-Za-z]+\/?$/' => array('subtopic' => 'accountmanagement', 'action' => 'changecomment', 'name' => '$3'), '/^account\/character\/comment\/?$/' => array('subtopic' => 'accountmanagement', 'action' => 'changecomment'), '/^characters\/[A-Za-z0-9-_%+\']+$/' => array('subtopic' => 'characters', 'name' => '$1'), + '/^commands\/add\/?$/' => array('subtopic' => 'commands', 'action' => 'add'), + '/^commands\/edit\/?$/' => array('subtopic' => 'commands', 'action' => 'edit'), '/^news\/add\/?$/' => array('subtopic' => 'news', 'action' => 'add'), '/^news\/edit\/?$/' => array('subtopic' => 'news', 'action' => 'edit'), '/^news\/archive\/?$/' => array('subtopic' => 'newsarchive'), diff --git a/system/pages/admin/plugins.php b/system/pages/admin/plugins.php index 9ae4e555..a9bab2e1 100644 --- a/system/pages/admin/plugins.php +++ b/system/pages/admin/plugins.php @@ -32,7 +32,6 @@ function deleteDirectory($dir) { if(!deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) { return false; } - } return rmdir($dir); @@ -130,9 +129,9 @@ else if(isset($_FILES["plugin"]["name"])) } else { $continue = true; - $require = $plugin['require']; - if(isset($require)) { + if(isset($plugin['require'])) { + $require = $plugin['require']; $require_myaac = $require['myaac']; if(isset($require_myaac)) { if(version_compare(MYAAC_VERSION, $require_myaac, '<')) { diff --git a/system/template.php b/system/template.php index d641794e..a774f100 100644 --- a/system/template.php +++ b/system/template.php @@ -84,7 +84,7 @@ foreach($links as $link) { $template['link_' . $link] = getLink($link); } -$template['link_gifts_history'] = getLink('gifts', 'show_history'); +$template['link_gifts_history'] = getLink('gifts', 'history'); if($config['forum'] != '') { if(strtolower($config['forum']) == 'site')