It may be a little bit OT, but I wonder, why mgd_update_article doesn't 
update the topic? I made a little change in the source code (patch attached 
to my post, works with midgard 1.4.3), but it would be very useful and 
reasonable do make it global.

Jakub Boesche
*** article.c	Thu Sep 12 15:34:13 2002
--- article.poprawiony.c	Thu Sep 12 15:33:30 2002
*************** MGD_FUNCTION(bool, update_article, (int 
*** 831,842 ****
     }
  
  	php_midgard_update(return_value, "article",
! 			   "name=$q,title=$q,abstract=$q,content=$q,"
  			   "author=$d,url=$q,calstart=$t,caldays=$d,icon=$d,"
  			   "view=$d,print=$d,extra1=$q,extra2=$q,extra3=$q,"
  			   "revised=Now(),revisor=$d,revision=revision+1,"
  			   "type=$s,score=$s,up=$s",
! 			   (*id)->value.lval, (*name)->value.str.val,
  			   (*title)->value.str.val, (*abstract)->value.str.val,
  			   (*content)->value.str.val, (*author)->value.lval,
  			   (*url)->value.str.val, (*calstart)->value.str.val,
--- 831,842 ----
     }
  
  	php_midgard_update(return_value, "article",
! 			   "topic=$d,name=$q,title=$q,abstract=$q,content=$q,"
  			   "author=$d,url=$q,calstart=$t,caldays=$d,icon=$d,"
  			   "view=$d,print=$d,extra1=$q,extra2=$q,extra3=$q,"
  			   "revised=Now(),revisor=$d,revision=revision+1,"
  			   "type=$s,score=$s,up=$s",
! 			   (*id)->value.lval, (*topic)->value.lval, (*name)->value.str.val,
  			   (*title)->value.str.val, (*abstract)->value.str.val,
  			   (*content)->value.str.val, (*author)->value.lval,
  			   (*url)->value.str.val, (*calstart)->value.str.val,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to