Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1874

$context.isVirtual() return wrong result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.1.2, 1.2 M2
    • {Unused} Core
    • None

    Description

      isVirtual exist in $xwiki (XWiki class) and $context (Context class) but the $xwiki one get directly from the xwiki.cfg file and the $context one just return a internal "virtual" boolean that is never initialised apparently.

      I think the best here is to call XWiki.isVirtual() in Context.isVirtual() method.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: