}
- function get($module)
+ function get($module, $opts = Array())
{
if (!empty($module)) {
$this->init();
- DB_DataObject::debugLevel(1);
+ //DB_DataObject::debugLevel(1);
require_once 'Services/JSON.php';
$d = DB_DataObject::factory('translations');
$d->module = $module;
$d->selectAdd();
$d->selectAdd('distinct(tlang) as tlang');
+ header('Content-type: text/javascript');
$langs= $d->fetchAll('tlang');
foreach($langs as $lang) {
// output the translations strings file..
}
- function post()
+ function post($v)
{