shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

translation.php (596B)


      1 <?php
      2 class ModelDesignTranslation extends Model {
      3 	public function getTranslations($route) {
      4 		$language_code = !empty($this->session->data['language']) ? $this->session->data['language'] : $this->config->get('config_language');
      5 		
      6 		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "translation WHERE store_id = '" . (int)$this->config->get('config_store_id') . "' AND language_id = '" . (int)$this->config->get('config_language_id') . "' AND (route = '" . $this->db->escape($route) . "' OR route = '" . $this->db->escape($language_code) . "')");
      7 
      8 		return $query->rows;
      9 	}
     10 }