Remove useless debug messages

lainchan was a mistake
This commit is contained in:
discomrade 2022-01-17 13:08:57 -01:00
parent c388081617
commit 2f64d7edff
5 changed files with 0 additions and 40 deletions

View file

@ -6,8 +6,6 @@
defined('TINYBOARD') or exit;
require_once 'inc/anti-bot.php'; // DELETE ME THIS IS FOR print_err function only!
function mod_page($title, $template, $args, $subtitle = false) {
global $config, $mod;
@ -2688,7 +2686,6 @@ function mod_new_pm($username) {
function mod_rebuild() {
global $config, $twig;
print_err("mod_rebuild");
if (!hasPermission($config['mod']['rebuild']))
error($config['error']['noaccess']);
@ -2713,9 +2710,7 @@ function mod_rebuild() {
if (isset($_POST['rebuild_themes'])) {
$log[] = 'Regenerating theme files';
print_err("mod_rebuild calling rebuildThemes");
rebuildThemes('all');
print_err("mod_rebuild calling rebuildThemes ok");
}
if (isset($_POST['rebuild_javascript'])) {