summaryrefslogtreecommitdiff
path: root/includes/model/Sprache_model.php
blob: 556834115cd2d88171be712a31eea22009de9d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/**
 * Load a string by key.
 * @param string $textid
 * @param string $sprache
 */
function Sprache($textid, $sprache) {
  $sprache_source = sql_select("SELECT * FROM `Sprache` WHERE `TextID`='" . sql_escape($textid) . "' AND `Sprache`='" . sql_escape($sprache) . "' LIMIT 1");
  if($sprache_source === false)
    return false;
  if(count($sprache_source) == 1)
    return $sprache_source[0];
  return null;
}


?>