Branch: Tag:

2001-11-09

2001-11-09 15:55:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Changed API for unregister_url(). Fixes [bug 2097 (#2097)].

Rev: server/base_server/configuration.pike:1.494
Rev: server/base_server/roxen.pike:1.754

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.493 2001/11/07 14:02:17 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.494 2001/11/09 15:55:43 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
348:      void unregister_urls()   { -  foreach( registered_urls, string url ) -  roxen.unregister_url(url); +  foreach( registered_urls + failed_urls, string url ) +  roxen.unregister_url(url, this_object());    registered_urls = ({});   }   
2351: Inside #if 0
  #if 0    report_debug(sprintf("configuration:start():\n"    " registered_urls: ({ %{%O, %}})\n" -  " faileded_urls: ({ %{%O, %}})\n" +  " failed_urls: ({ %{%O, %}})\n"    " URLs: ({ %{%O, %}})\n",    registered_urls,    failed_urls,
2362:    foreach( (registered_urls-query("URLs"))+failed_urls, string url )    {    registered_urls -= ({ url }); -  roxen.unregister_url( url ); +  roxen.unregister_url(url, this_object());    }       failed_urls = ({ });