Branch: Tag:

2000-08-10

2000-08-10 16:21:00 by Per Hedbor <ph@opera.com>

Do not add scopes when there is no active RXML parser

Rev: server/etc/modules/Roxen.pmod:1.24

1:   /* -  * $Id: Roxen.pmod,v 1.23 2000/08/09 11:12:15 per Exp $ +  * $Id: Roxen.pmod,v 1.24 2000/08/10 16:21:00 per Exp $    *    * Various helper functions.    *
693:    SRestore res = SRestore();    mapping ac = all_constants();    if(!name) name = ""; +  if( RXML.get_context() ) +  {    foreach( RXML.get_context()->list_scopes()|({"_"}), string scope )    {    res->osc[ name+scope ] = ac[ name+scope ];    add_constant( name+scope, EScope( scope ) );    } -  +  }    return res;   }