@@ 265-267 (lines=3) @@ | ||
262 | if (false == $parent_id && 0 < PMF_String::strlen($_query)) { |
|
263 | $query .= PMF_String::substr($_query, 4); |
|
264 | } |
|
265 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |
|
266 | $query .= " AND lang = '".$this->language."'"; |
|
267 | } |
|
268 | $query .= " ORDER BY id"; |
|
269 | $result = $this->_config->getDb()->query($query); |
|
270 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
|
@@ 289-291 (lines=3) @@ | ||
286 | FROM |
|
287 | %sfaqcategories", |
|
288 | PMF_Db::getTablePrefix()); |
|
289 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |
|
290 | $query .= " WHERE lang = '".$this->language."'"; |
|
291 | } |
|
292 | $result = $this->_config->getDb()->query($query); |
|
293 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
|
294 | $this->categories[$row["id"]] = $row; |
|
@@ 1345-1347 (lines=3) @@ | ||
1342 | FROM |
|
1343 | %sfaqcategories", |
|
1344 | PMF_Db::getTablePrefix()); |
|
1345 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |
|
1346 | $query .= " WHERE lang != '".$this->language."'"; |
|
1347 | } |
|
1348 | $query .= ' ORDER BY id'; |
|
1349 | $result = $this->_config->getDb()->query($query); |
|
1350 | while ($row = $this->_config->getDb()->fetchArray($result)) { |