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['id'] = $id;
$this->data['lastaccess'] = $lastaccess;
$this->data['su'] = $su;
$this->data['su'] = 0;
$this->data['clipboard'] = array('docs'=>array(), 'folders'=>array());
return $id;
} /* }}} */

View File

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