19 include_once (
"FDL/Class.Dir.php");
33 if (!$zone) $action->addWarningMsg(_(
"no template defined"));
34 if (!
$docid) $action->addWarningMsg(sprintf(_(
"template %s no document found") , $zone));
35 $dbaccess = $action->getParam(
"FREEDOM_DB");
39 return sprintf(_(
"error in pzone format %s") , $zone);
42 if (array_key_exists(
'argv', $reg)) {
43 foreach ($reg[
'argv'] as $k => $v) {
49 if (
$doc->isAlive()) {
51 $doc->lay = & $action->lay;
53 $method = strtok(strtolower($reg[
'layout']) ,
'.');
57 $doc->editattr(
$doc->getZoneOption($zone) ==
"U");