From: <var...@us...> - 2011-11-29 11:13:51
|
Revision: 8196 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8196&view=rev Author: vargenau Date: 2011-11-29 11:13:40 +0000 (Tue, 29 Nov 2011) Log Message: ----------- We have to use a smaller value for MAX_PAGENAME_LENGTH in Fusionforge than Phpwiki due to page prefix Modified Paths: -------------- trunk/g trunk/lib/stdlib.php Modified: trunk/g =================================================================== --- trunk/g 2011-11-29 10:10:49 UTC (rev 8195) +++ trunk/g 2011-11-29 11:13:40 UTC (rev 8196) @@ -76,6 +76,9 @@ define('VIRTUAL_PATH', '/wiki/g/'.$group_name); define('PAGE_PREFIX', '_g'.$group_id.'_'); + // We have to use a smaller value than Phpwiki due to page prefix + define('MAX_PAGENAME_LENGTH', 92); + define('THEME', 'fusionforge'); // For FusionForge, we create some specific pages, located in the theme Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2011-11-29 10:10:49 UTC (rev 8195) +++ trunk/lib/stdlib.php 2011-11-29 11:13:40 UTC (rev 8196) @@ -108,7 +108,9 @@ if (defined('_PHPWIKI_STDLIB_LOADED')) return; else define('_PHPWIKI_STDLIB_LOADED', true); -define('MAX_PAGENAME_LENGTH', 100); +if (!defined('MAX_PAGENAME_LENGTH')) { + define('MAX_PAGENAME_LENGTH', 100); +} /** * Convert string to a valid XML identifier. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |