first commit

This commit is contained in:
Konstantin
2026-05-30 09:27:58 +03:00
commit de0344d218
2371 changed files with 661486 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
<?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;
}
}