Creatures and monsters are now reloaded in Admin Panel

This commit is contained in:
slawkens
2020-10-27 07:33:21 +01:00
parent 41e24ca535
commit 9fe419cfe7
3 changed files with 3 additions and 39 deletions

View File

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