Branch: Tag:

1999-10-17

1999-10-17 14:14:13 by Martin Nilsson <mani@lysator.liu.se>

Looks like Per accidently optimized away the unset tag. Readded.

Rev: server/modules/tags/rxmltags.pike:1.25

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version="$Id: rxmltags.pike,v 1.24 1999/10/10 11:22:44 per Exp $"; + constant cvs_version="$Id: rxmltags.pike,v 1.25 1999/10/17 14:14:13 nilsson Exp $";   constant thread_safe=1;   constant language = roxen->language;   
210:    m->alt || "" });   }    + string tag_unset(string tag, mapping m, RequestID id) { +  if(!m->variable) return rxml_error(tag, "Variable not specified.", id); +  m_delete( id->variables, m->variable ); +  return ""; + } +    string tag_set( string tag, mapping m, RequestID id )   {    if(m->help) -  return ("<b>&lt;"+tag+" variable=...&gt;</b>: "+String.capitalize(tag)+" the variable specified " +  return ("<b>&lt;set variable=...&gt;</b>: Sets the variable specified "    "by the 'variable' argument");       if (m->variable)
239:    else if (m->eval)    // Set variable to the result of some evaluated RXML    id->variables[ m->variable ] = parse_rxml(m->eval, id); -  else -  // Unset variable. -  m_delete( id->variables, m->variable ); +     return "";    }