Merge branch 'develop' into hooks

This commit is contained in:
Uwe Steinmann 2013-05-02 18:33:37 +02:00
commit d0118f9b9d
2 changed files with 5 additions and 3 deletions

View File

@ -105,7 +105,7 @@ class SeedDMS_Session {
$this->data = $data; $this->data = $data;
$this->data['id'] = $id; $this->data['id'] = $id;
$this->data['lastaccess'] = $lastaccess; $this->data['lastaccess'] = $lastaccess;
$this->data['su'] = $su; $this->data['su'] = 0;
$this->data['clipboard'] = array('docs'=>array(), 'folders'=>array()); $this->data['clipboard'] = array('docs'=>array(), 'folders'=>array());
return $id; return $id;
} /* }}} */ } /* }}} */

View File

@ -74,8 +74,10 @@ function getMLText($key, $replace = array(), $defaulttext = "", $lang="") { /* {
if(!isset($LANG[$lang][$key])) { if(!isset($LANG[$lang][$key])) {
if (!$defaulttext) { if (!$defaulttext) {
if(isset($LANG[$settings->_language][$key]))
$tmpText = $LANG[$settings->_language][$key]; $tmpText = $LANG[$settings->_language][$key];
// return "Error getting Text: " . $key . " (" . $lang . ")"; else
$tmpText = '';
} else } else
$tmpText = $defaulttext; $tmpText = $defaulttext;
} else } else