application/modules/cmsemail/models/cmsemail_model.php 1 location
|
@@ 118-126 (lines=9) @@
|
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
public function getTemplateVariables($template_id, $locale) { |
| 119 |
|
$query = $this->db->where('id', $template_id)->where('locale', $locale)->get('mod_email_paterns_i18n'); |
| 120 |
|
if ($query) { |
| 121 |
|
$pattern = $query->row_array(); |
| 122 |
|
return unserialize($pattern['variables']); |
| 123 |
|
} else { |
| 124 |
|
return FALSE; |
| 125 |
|
} |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
/** |
| 129 |
|
* @param int $template_id |
application/modules/mod_seo/models/seoexpert_model.php 1 location
|
@@ 100-109 (lines=10) @@
|
| 97 |
|
* @param string $locale |
| 98 |
|
* @return array |
| 99 |
|
*/ |
| 100 |
|
public function getSettings($locale = 'ru') { |
| 101 |
|
|
| 102 |
|
$settings = $this->db->select('settings') |
| 103 |
|
->where('locale', $locale) |
| 104 |
|
->get('mod_seo') |
| 105 |
|
->row_array(); |
| 106 |
|
|
| 107 |
|
$settings = unserialize($settings['settings']); |
| 108 |
|
return $settings ?: false; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* Install |