Merge remote branch 'upstream/master' into BUG-9508
This commit is contained in:
@@ -4585,9 +4585,9 @@ class Cases
|
||||
throw (new Exception("Template file \"$fileTemplate\" does not exist."));
|
||||
}
|
||||
|
||||
$sBody = G::replaceDataField(file_get_contents($fileTemplate), $aFields);
|
||||
$sBody = G::replaceDataGridField(file_get_contents($fileTemplate), $aFields);
|
||||
} else {
|
||||
$sBody = nl2br(G::replaceDataField($aTaskInfo["TAS_DEF_MESSAGE"], $aFields));
|
||||
$sBody = nl2br(G::replaceDataGridField($aTaskInfo["TAS_DEF_MESSAGE"], $aFields));
|
||||
}
|
||||
|
||||
G::LoadClass("tasks");
|
||||
|
||||
@@ -276,7 +276,7 @@ class Content extends BaseContent {
|
||||
*
|
||||
* @param array $langs
|
||||
*/
|
||||
function regenerateContent($langId)
|
||||
function regenerateContent($langs)
|
||||
{
|
||||
//Search the language
|
||||
$key = array_search('en',$langs);
|
||||
@@ -382,6 +382,17 @@ class Content extends BaseContent {
|
||||
}
|
||||
}
|
||||
|
||||
function fastInsertContent ($ConCategory, $ConParent, $ConId, $ConLang, $ConValue) {
|
||||
$con = new Content ( );
|
||||
$con->setConCategory ( $ConCategory );
|
||||
$con->setConParent ( $ConParent );
|
||||
$con->setConId ( $ConId );
|
||||
$con->setConLang ( $ConLang );
|
||||
$con->setConValue ( $ConValue );
|
||||
$res = $con->save ();
|
||||
return $res;
|
||||
}
|
||||
|
||||
function removeLanguageContent($lanId) {
|
||||
try {
|
||||
$c = new Criteria ( );
|
||||
|
||||
Reference in New Issue
Block a user