if ($propertyInfo[0]['TYPE'] == 'LINK') { $value = trim(prettifyUrl($value)); $result = checkLinkInternalExternal($value); if ($result['TYPE'] != 'external') { $value = createSpecialURLfromShortURL($value); } } // Special handling for textareas if ($propertyInfo[0]['TYPE'] == 'TEXTAREA') { $value = str_replace('\\n', "\n", $value); } // Special handling for wysiwyg if ($propertyInfo[0]['TYPE'] == 'RICHTEXT') { $value = str_replace('\\n', "\n", $value); $value = convertShortURLsToSpecialURLs($value); } // Set the new property if ($entrymaskMgr->setName($data[0], $value) === false) { $koala->alert($itext['TXT_ERROR_ACCESS_DENIED']); } else { $value = str_replace("\n", '\\n', $value); $jsQueue->add($data[0], HISTORYTYPE_ENTRYMASK, 'OBJECT_CHANGE', sGuiUS(), 'entrymask', NULL, NULL, $this->reponsedata[$property]->yg_id, 'name', $value); $jsQueue->add($data[0], HISTORYTYPE_ENTRYMASK, 'OBJECT_CHANGE', sGuiUS(), 'page', NULL, NULL, $this->reponsedata[$property]->yg_id, 'name', $value); // Special case for name $jsQueue->add($data[0], HISTORYTYPE_ENTRYMASK, 'REFRESH_WINDOW', sGuiUS(), 'name'); $jsQueue->add($data[0], HISTORYTYPE_PAGE, 'REFRESH_WINDOW', sGuiUS(), 'name'); } break; } break; }