Index: trunk/kernel/include/language.php =================================================================== diff -u -r3330 -r3534 --- trunk/kernel/include/language.php (.../language.php) (revision 3330) +++ trunk/kernel/include/language.php (.../language.php) (revision 3534) @@ -66,14 +66,14 @@ } - function &AddPhrase($Phrase,$LangId,$Translation,$Type) + function &AddPhrase($Phrase,$LangId,$Translation,$Type, $Module = 'In-Portal') { $tmpphrase = $this->GetPhrase($Phrase, $LangId); if (!$tmpphrase) { $p = new clsPhrase(); $p->tablename = $this->SourceTable; - $p->Set(array("Phrase","LanguageId","Translation","PhraseType"), - array($Phrase,$LangId,$Translation,$Type)); + $p->Set(array("Phrase","LanguageId","Translation","PhraseType", 'Module', 'LastChanged', 'LastChangeIP'), + array($Phrase,$LangId,$Translation,$Type, $Module, time(), $_SERVER['REMOTE_ADDR'] )); $p->Dirty(); $p->Create(); return $p; @@ -90,11 +90,11 @@ } } - function &EditPhrase($id,$Phrase,$LangId,$Translation,$Type) + function &EditPhrase($id,$Phrase,$LangId,$Translation,$Type, $Module = 'In-Portal') { $p = $this->GetItem($id); - $p->Set(array("Phrase","LanguageId","Translation","PhraseType"), - array($Phrase,$LangId,$Translation,$Type)); + $p->Set(array("Phrase","LanguageId","Translation","PhraseType", 'Module', 'LastChanged', 'LastChangeIP'), + array($Phrase,$LangId,$Translation,$Type, $Module, time(), $_SERVER['REMOTE_ADDR'] )); $p->Dirty(); $p->Update(); return $p;