/
Make "kApplication::QuickRun" reusable [5.2.2-B1]

Make "kApplication::QuickRun" reusable [5.2.2-B1]

Right now the "kApplication::QuickRun" method does this:

  • discards any previously parsed template content
  • renders current template (obtained via "GetVar" call) content instead

This isn't very flexible.

Solution

  1. change "kApplication::QuickRun" method by adding an optional "$template" parameter (when passed set it's value into "t" parameter of Web Request, that is used later anyway)
  2. move the "404" HTTP header sending out from "kUrlManager::prepare404" method into:
    • "kUrlManager::show404" method
    • "kRewriteUrlProcessor::parseRewriteURL" method (add else, when not caching url)
  3. inline what's left of "kUrlManager::prepare404" method into "kRewriteUrlProcessor::parse" method (where inlined method was used)
  4. change "kApplication::QuickRun" method to do "SetVar" on "t" and "m_cat_id" Web Request parameters as "kUrlManager::show404" did before

Related Discussions

Related Tasks

INP-1563 - Getting issue details... STATUS