Last modified: 2012-04-12 13:56:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23087, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21087 - generateSitemaps.php does not use $wgSitemapNamespaces from LocalSettings.php
generateSitemaps.php does not use $wgSitemapNamespaces from LocalSettings.php
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.16.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Chad H.
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-10 16:47 UTC by Sorin Sbarnea
Modified: 2012-04-12 13:56 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sorin Sbarnea 2009-10-10 16:47:06 UTC
I tested on latest release of MW and found out that $wgSitemapNamespaces is not initialized with the value from LocalSettings.php when the script /maintenance/generateSitemaps.php is called from the command line. It is always 'false'.
Comment 1 Alexandre Emsenhuber [IAlex] 2009-10-16 08:51:08 UTC
Not able to reproduce this, $wgSitemapNamespaces works as expected in my wiki.
Be sure that you put it after the following line:
require_once( "$IP/includes/DefaultSettings.php" );

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links