[pmwiki-users] detecting minor edit
sgp
acs322000 at yahoo.com
Tue Feb 13 10:51:32 CST 2007
Patrick R. Michaud wrote:
> You might try adding a space between "if" and the opening paren,
> although I don't think that's it. Or, perhaps send a copy of your
> local/config.php and we can look at it.
Adding spaces didn't help.
Here's a copy of my local/config.php, comments stripped.
Line 2 should trigger an error warning when saving a minor edit,
but it doesn't.
Thank you
<?php if (!defined('PmWiki')) exit();
if(@$_POST['diffclass'] == 'minor') {print 1/0;}
$WikiTitle = 'www.site.com';
$PageLogoUrl = "$PubDirUrl/../../images/nav1.gif";
$Skin = 'fixflow';
$DefaultPasswords['admin'] = crypt('pass');
$DefaultPasswords['edit'] = crypt('pass');
$HandleAuth['diff'] = 'edit';
$HandleAuth['source'] = 'edit';
$HandleAuth['refcount'] = 'admin';
include_once("$FarmD/scripts/refcount.php");
$UnapprovedLinkCountMax = 5;
include_once("$FarmD/cookbook/includeurl.php");
include_once("$FarmD/cookbook/clipboard.php");
XLPage('clip','Sgp.XLPage'); # sgp's addons
include_once("$FarmD/scripts/xlpage-utf-8.php");
$DefaultLanguages = array('de','en');
$LanguageSelectionFmt = '[[{$FullName}?userlang=$1|Path:images/$1.png]] ';
include_once("$FarmD/cookbook/multilanguage.php");
switch ($_COOKIE['userlang']) {
default: /* shouldn't happen after multilanguage.php */
case 'de':
XLPage('de','PmWikiDe.XLPage'); # from i18n.tgz
XLPage('de','PmWikiDe.XLPageCookbook'); # for cookbook addons
XLPage('de','PmWikiDe.XLPageLocal'); # my local De translations (group names)
break;
case 'en':
XLPage('en','PmWiki.XLPageLocal'); # my local En translations (group names)
break;
}
include_once('cookbook/redirect.php');
// end
More information about the pmwiki-users
mailing list