mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
Creatures and monsters are now reloaded in Admin Panel
This commit is contained in:
@@ -11,15 +11,6 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Spells';
|
||||
|
||||
$canEdit = hasFlag(FLAG_CONTENT_SPELLS) || admin();
|
||||
if(isset($_POST['reload_spells']) && $canEdit)
|
||||
{
|
||||
require LIBS . 'spells.php';
|
||||
if(!Spells::loadFromXML(true)) {
|
||||
error(Spells::getLastError());
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_REQUEST['vocation_id'])) {
|
||||
$vocation_id = $_REQUEST['vocation_id'];
|
||||
if($vocation_id == 'all') {
|
||||
@@ -90,4 +81,4 @@ $twig->display('spells.html.twig', array(
|
||||
} );
|
||||
|
||||
</script>
|
||||
<script src="<?php echo BASE_URL; ?>tools/js/datatables.min.js"></script>
|
||||
<script src="<?php echo BASE_URL; ?>tools/js/datatables.min.js"></script>
|
||||
|
Reference in New Issue
Block a user