* fixed adding/editing commands

* fixed undefined index in install plugin
This commit is contained in:
slawkens1 2017-10-09 20:34:06 +02:00
parent e2857f8ca5
commit 856e72150c
3 changed files with 5 additions and 4 deletions

View File

@ -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'),

View File

@ -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, '<')) {

View File

@ -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')