Summary: Incorrect articlepath returned for query&meta=siteinfo
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: API

When querying siteinfo at,

It returns

<?xml version="1.0"?>
    <general mainpage="Main Page" base="";
sitename="Wikipedia" generator="MediaWiki 1.16alpha-wmf"
phpversion="5.2.4-2ubuntu5.7wm1" phpsapi="apache2handler" dbtype="mysql"
dbversion="5.1.43-wm3193-log" rev="59858" case="first-letter" rights="Creative
Commons Attribution-Share Alike 3.0 Unported" lang="en"
fallback8bitEncoding="windows-1252" writeapi="" timezone="UTC" timeoffset="0"
articlepath="/wiki/$1" scriptpath="/w" script="/w/index.php"
variantarticlepath="" server=""; wikiid="enwiki" />

Under articlepath, it returns "/wiki/$1" when it should return "/wiki/".

This is set by "$data['articlepath'] = $GLOBALS['wgArticlePath'];" in
ApiQuerySiteinfo.php, so this is probably a problem in globals.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to