/** * Removes not used media from the media tables. * */ public function clean_media() { $result = array('title' => lang('ionize_title_clean_media'), 'status' => 'success'); // Check and correct page's views $nb_cleaned = $this->media_model->clean_table(); $result['message'] = $nb_cleaned . lang('ionize_message_nb_media_cleaned'); $this->xhr_output($result); }