Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar

PmWiki

pmwiki.org

01037

Summary: Variables in wrong order in the sample-config.php
Created: 2008-07-25 12:19
Status: Closed - fixed for 2.2.3
Category: Documentation
From:
Assigned:
Priority: 1
Version: 2.2.0-beta67
OS:

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;
include_once('scripts/urlapprove.php');

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

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:56 AM