Diff for /Amaya/amaya/templates.c between versions 1.164 and 1.165

version 1.164, 2008/01/29 13:19:43 version 1.165, 2008/02/25 11:42:47
Line 390  void CreateInstanceOfTemplate (Document Line 390  void CreateInstanceOfTemplate (Document
         return;          return;
     }      }
   
   LoadTemplate (0, templatename);    if(LoadTemplate (0, templatename))
   DontReplaceOldDoc = dontReplace;      {
   CreateInstance (templatename, docname, doc);        DontReplaceOldDoc = dontReplace;
         CreateInstance (templatename, docname, doc);
       }
 #endif /* TEMPLATES */  #endif /* TEMPLATES */
 }  }
   
Line 1131  void CheckTemplate (Document doc) Line 1133  void CheckTemplate (Document doc)
 {  {
 #ifdef TEMPLATES  #ifdef TEMPLATES
   Element    root;    Element    root;
     
   if (DocumentMeta[doc] && DocumentMeta[doc]->template_url)    if (DocumentMeta[doc] && DocumentMeta[doc]->template_url)
     {      {
       XTigerTemplate   t;        XTigerTemplate   t;
Line 1148  void CheckTemplate (Document doc) Line 1150  void CheckTemplate (Document doc)
       else        else
         {          {
           // fix all access rights in the instance            // fix all access rights in the instance
           Template_FixAccessRight (t, root, doc);  //          Template_FixAccessRight (t, root, doc);
           TtaUpdateAccessRightInViews (doc, root);            TtaUpdateAccessRightInViews (doc, root);
         }          }
     }      }

Removed from v.1.164  
changed lines
  Added in v.1.165


Webmaster