mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* fixed adding/editing commands
* fixed undefined index in install plugin
This commit is contained in:
parent
e2857f8ca5
commit
856e72150c
@ -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'),
|
||||
|
@ -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, '<')) {
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user