Armand,

I am new with PHP. Could you tell me where I can find the Snippet? I used
find command, just couldn't find the place.

Thanks

Rene




                                                                                       
 
 (Embedded     "Armand A. Verstappen" <[EMAIL PROTECTED]>                           
 
 image moved   06/08/2002 05:45 PM                                                     
 
 to file:                                                                              
 
 pic19314.pcx)                                                                         
 
                                                                                       
 
                                                                                       
 



Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: [midgard-user] Error on creating new style!!

Security Level:?         Internal


On Fri, 2002-06-07 at 23:27, [EMAIL PROTECTED] wrote:
>
> Hi, all
>
> Thank you all for the previous help. I finally got midgard 1.4.*  RC 2
and
> nadmin installed.
>
> When I logged in as a company user with company administratior
previliges,
> and created new style for my website, I got this message:
>
> Warning: Wrong parameter count for mgd_copy_style() in ROOT(899) : eval
()'d
> code on line 187
>
> I chose to Based on Empty style(shared). Anything wrong?

Yep, it's nadmin not being updated to current php and midgard versions.

your fix:

in Snippet: / hklc_adminsite_host / argv0 / new / new

change:

77: function new_copy_style($from_id,$new_name,$new_owner,$sitegroup)
78: {
79:   global
$set,$sitegroupid,$sitegroupidurl,$newfiledata,$xmlformat,$rcsroot,$argv,$SERVER_NAME,

$error_message;
80:   $objpath="";
81:   $up_id=$from_id;
82:   $lastid=0;
83:   while ($tmpobj=mgd_get_style($up_id))
84:   {
85:       $lastid=$tmpobj->id;
86:       $objpathstr=$tmpobj->name."-----".$objpathstr;
87:       $up_id=$tmpobj->up;
88:   }
89:   $objpath=explode("-----",$objpathstr);
90:   $local_id = mgd_copy_style($lastid);

into:

77: function new_copy_style($from_id,$new_name,$new_owner,$sitegroup)
78: {
79:   global
$set,$sitegroupid,$sitegroupidurl,$newfiledata,$xmlformat,$rcsroot,$argv,$SERVER_NAME,

$error_message;
80:   $objpath="";
81:   $up_id=$from_id;
82:   $lastid=0;
83:   while ($tmpobj=mgd_get_style($up_id))
84:   {
85:       $lastid=$tmpobj->id;
86:       $objpathstr=$tmpobj->name."-----".$objpathstr;
87:       $up_id=$tmpobj->up;
88:   }
89:   $objpath=explode("-----",$objpathstr);
90:   $local_id = mgd_copy_style($lastid, 0);


The linenumbers may vary per version/patchlevel.

wkr,

--
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht







      CONFIDENTIALITY : This e-mail and any attachments are confidential
      and may be privileged. If you are not a named recipient, please
      notify the sender immediately and do not open any attachments hereto,
      disclose the contents of this e-mail or the attachments if any
      thereto, to another person, use it for any purpose or store or copy
      the information in any medium.

Attachment: pic19314.pcx
Description: Binary data

Attachment: signature.asc
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to