Bug Report/Code Typo
Plugin : Event-Handler: Alle Templates wiederherstellen
Hook: admin_complete
call to function cad_administer('canadminstyles') - should be can_administer('canadminstyles')
PHP Code:
global $deletetemplates;
if ($_POST['do'] == 'dorevertall' AND !empty($deletetemplates) AND $vbulletin->adminloggedin AND cad_administer('canadminstyles'))
{
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "templateedit WHERE styleid = " . $vbulletin->GPC['styleid']);
require_once(DIR . '/includes/adminfunctions_templateedits.php');
rebuild_template_edits($vbulletin->GPC['dostyleid'], array_keys($deletetemplates));
}