From 4e90523cccdb036b2756ade036cccb4714759fef Mon Sep 17 00:00:00 2001 From: Paolo Date: Thu, 3 May 2018 12:31:56 +0200 Subject: [PATCH] Removed var_dumps and error_logs where not needed or placed a comment where they are needed --- application/controllers/DBTools.php | 1 - application/helpers/fhc_helper.php | 3 +-- application/widgets/mimetype_widget.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/application/controllers/DBTools.php b/application/controllers/DBTools.php index 8590c2285..ee5d8e363 100644 --- a/application/controllers/DBTools.php +++ b/application/controllers/DBTools.php @@ -391,7 +391,6 @@ class DBTools extends FHC_Controller // **** Permission **** // ToDo: Check Persmissions in the bottom of this file case 'permissions': - //var_dump($this->config->item('fhc_acl')); echo ' Permissions!'; //$this->config->load('roles'); foreach ($this->config->item('fhc_acl') as $b) diff --git a/application/helpers/fhc_helper.php b/application/helpers/fhc_helper.php index 0db246441..19326e4df 100644 --- a/application/helpers/fhc_helper.php +++ b/application/helpers/fhc_helper.php @@ -62,7 +62,6 @@ function generateToken($length = 64) } /** - * var_dump_to_error_log() * Gets the output of the var_dump function and print it out * via the error log. It also removes the end line characters */ @@ -72,7 +71,7 @@ function var_dump_to_error_log($parameter) var_dump($parameter); // KEEP IT!!! $ob_get_contents = ob_get_contents(); ob_end_clean(); - error_log(str_replace("\n", '', $ob_get_contents)); + error_log(str_replace("\n", '', $ob_get_contents)); // KEEP IT!!! } /** diff --git a/application/widgets/mimetype_widget.php b/application/widgets/mimetype_widget.php index 82fd394fb..fbb69119b 100644 --- a/application/widgets/mimetype_widget.php +++ b/application/widgets/mimetype_widget.php @@ -11,7 +11,7 @@ class mimetype_widget extends Widget $data['mimetype'] = ''; $this->load->model('system/Vorlage_model'); $res = $this->Vorlage_model->getMimeTypes(); - //var_dump($res); + foreach ($res->retval as $obj) { $item = array('name' => $obj->mimetype, 'value' => $obj->mimetype);