17 include_once (
"FDL/Class.Doc.php");
22 $docid = GetHttpVars(
"id");
23 $name = GetHttpVars(
"name");
26 if (!
$doc->isAlive()) {
27 $action->
addWarningMsg(sprintf(_(
"Document %s is not alive") ,
$doc->getTitle()));
29 $oldName =
$doc->name;
30 $err =
$doc->setLogicalName($name,
true);
33 } elseif (!empty($name)) {
35 $doc->addHistoryEntry(sprintf(_(
"update logical name from %s to %s") , $oldName,
$doc->name));
37 $doc->addHistoryEntry(sprintf(_(
"set logical name to %s") ,
$doc->name));
42 redirect($action,
"FDL",
"IMPCARD&zone=FDL:VIEWPROPERTIES:T&id=" .
$docid);
setlogicalname(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err