01037: Variables in wrong order in the sample-config.php
Summary: Variables in wrong order in the sample-config.php
Created: 2008-07-25 12:19
Status: Closed - fixed for 2.2.3
Description: The page http://www.pmwiki.org/wiki/PmWiki/UrlApprovals says:
"Example: To set the limit to 5 unapproved links, add the following line to a configuration file:
$UnapprovedLinkCountMax = 5;
Note that $UnapprovedLinkCountMax must be set before including the urlapprove.php script."
In the sample-config.php the variables are in reverse order (as follows) and their order should be changed.
## If you want to have to approve links to external sites before they ## are turned into links, uncomment the line below. See PmWiki.UrlApprovals. ## Also, setting $UnapprovedLinkCountMax limits the number of unapproved ## links that are allowed in a page (useful to control wikispam). # include_once('scripts/urlapprove.php');
# $UnapprovedLinkCountMax = 10;
It is generally advised to set config variables before including the scripts, but in this case here it should work both ways. Anyways, the order will be fixed for the next version, thanks! --Petko July 07, 2009, at 08:56 PM