diff --git a/library/includes/cron/jobs/attach_maintenance.php b/library/includes/cron/jobs/attach_maintenance.php index bbc7f07ed..d4ec5d5d2 100644 --- a/library/includes/cron/jobs/attach_maintenance.php +++ b/library/includes/cron/jobs/attach_maintenance.php @@ -195,11 +195,11 @@ if ($check_attachments) { } } if ($debug_mode) { - prn_r($orphan_files, '$orphan_files'); - prn_r($orphan_db_attach, '$orphan_db_attach'); - prn_r($orphan_tor, '$orphan_tor'); - prn_r($posts_without_attach, '$posts_without_attach'); - prn_r($topics_without_attach, '$topics_without_attach'); + dump($orphan_files); + dump($orphan_db_attach); + dump($orphan_tor); + dump($posts_without_attach); + dump($topics_without_attach); } DB()->query("DROP TEMPORARY TABLE $tmp_attach_tbl"); diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index 3cde315dc..0e667c9e4 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -344,21 +344,6 @@ function bb_exit($output = '') exit; } -/** - * @param $var - * @param string $title - * @param bool $print - * @return string - */ -function prn_r($var, $title = '', $print = true) -{ - $r = '
' . ($title ? "$title\n\n" : '') . htmlspecialchars(print_r($var, true)) . ''; - if ($print) { - echo $r; - } - return $r; -} - /** * Convert special characters to HTML entities *