remove useless functions and stuff.
[platal.git] / plugins / pmwiki.config.php
index 11ea9bd..e3d611b 100644 (file)
@@ -1,12 +1,15 @@
 <?php if (!defined('PmWiki')) exit();
 
-$ScriptUrl       = $globals->relurl;
+$ScriptUrl       = $globals->baseurl;
 $UploadUrlFmt    = $ScriptUrl."/uploads";
 $WorkDir         = $globals->wiki->workdir;
 $WikiDir         = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
 $PubDirUrl       = $globals->baseurl.'/wiki';
 $InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
 
+# Authorize group name to start with a number (for promo groups)
+$GroupPattern = '[[:upper:]0-9][\\w]*(?:-\\w+)*';
+
 $EnablePathInfo = 1;
 
 $Skin = 'empty';
@@ -36,7 +39,7 @@ $DefaultPasswords['admin']  = 'has_perms: and: identified:';
 $DefaultPasswords['upload'] = 'has_perms: and: identified:';
 
 $EnableGUIButtons = 1;
-$EnableUpload = 1;                       
+$EnableUpload = 1;
 $LinkWikiWords = 0;                      # disable WikiWord links
 $EnableIMSCaching = 1;                   # allow browser caching