Basic Settings Misleading

Jump to: navigation, search

The section 'Basic Settings' states:

$wgFlaggedRevsNamespaces – Sets what namespaces to allow for reviewing. This is an array of integers. Look at the beginning of includes/defines.php to see what integer the default namespaces map to.

However, I after spending quite a while trying to get integers for namespaces to work, I found out the names of the namespaces had to be used. In fact, looking into FlaggedRevs.php, this is what is shown:

# Allowed namespaces of reviewable pages
$wgFlaggedRevsNamespaces = array( NS_MAIN, NS_FILE, NS_TEMPLATE );

The text on the Extension page should be updated!

Acaldwell15:53, 1 December 2011

NS_MAIN is a PHP constant which equals an integer. So the values *are* integers. Using constants just makes it more readable. You could technically do wgFlaggedRevsNamespaces = ( 0, 6, 10 );

Aaron00:38, 3 December 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox