Branch: Tag:

2001-07-12

2001-07-12 23:02:32 by Martin Nilsson <mani@lysator.liu.se>

Reverted to use page local counter.

Rev: server/modules/graphics/graphic_text.pike:1.269

1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.268 2001/07/10 18:46:18 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.269 2001/07/12 23:02:32 nilsson Exp $";      #include <module.h>   inherit "module";
567:      private roxen.ImageCache image_cache;   private string compat_level; - private int magic_counter; +       string status() {    array s=image_cache->status();
1104:       if(!id->supports->images) return sprintf(lp,arg->alt);    -  string sn = "gtext" + (magic_counter++ % 65535); +  string sn = "gtext" + id->misc->gtext_mi++;    if(!id->supports->js_image_object) {    return (!input)?    ("<a"+ea+"href=\""+url+"\">"+Roxen.make_tag("img",arg+(["name":sn]),xml)+"</a>"):