File "translation.php"
Full path: /home/cakedeco/retaildirectonline.co.uk/catalog/model/design/translation.php
File
size: 596 B (596 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
class ModelDesignTranslation extends Model {
public function getTranslations($route) {
$language_code = !empty($this->session->data['language']) ? $this->session->data['language'] : $this->config->get('config_language');
$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) . "')");
return $query->rows;
}
}