mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Removed var_dumps and error_logs where not needed or placed a comment where they are needed
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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!!!
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user