Created
January 11, 2021 16:08
-
-
Save PechenkiUA/770e990f6bb674358b763cca00d96d27 to your computer and use it in GitHub Desktop.
seo_url.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elseif ($key == 'route') { | |
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "seo_url WHERE `query` = '" . $this->db->escape($value) . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "' AND language_id = '" . (int)$this->config->get('config_language_id') . "'"); | |
if ($query->num_rows && $query->row['keyword']) { | |
$url .= '/' . $query->row['keyword']; | |
unset($data[$key]); | |
} else if ($data['route'] == "common/home") { | |
$url .= '/'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment