public function lang_replace_callback($matches) { if (!empty($matches[1])) { return $this->language->lang($matches[1]); } return ''; }