[pLog-svn] r3547 - plog/trunk/class/action/admin
reto at devel.lifetype.net
reto at devel.lifetype.net
Tue Jun 6 21:43:41 GMT 2006
Author: reto
Date: 2006-06-06 21:43:40 +0000 (Tue, 06 Jun 2006)
New Revision: 3547
Modified:
plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
Log:
ok, and this is a good example for an intrangerule ;)
Modified: plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2006-06-06 21:34:52 UTC (rev 3546)
+++ plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2006-06-06 21:43:40 UTC (rev 3547)
@@ -6,7 +6,7 @@
include_once( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
include_once( PLOG_CLASS_PATH."class/data/textfilter.class.php" );
include_once( PLOG_CLASS_PATH."class/view/admin/adminblogsettingsview.class.php" );
- include_once( PLOG_CLASS_PATH."class/data/validator/rules/rangerule.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/validator/rules/intrangerule.class.php" );
/**
@@ -27,7 +27,7 @@
// specific validator that does not allow an integer below 1
$val = new IntegerValidator();
- $val->addRule( new RangeRule( 1, 99999999 ));
+ $val->addRule( new IntRangeRule( 1, 99999999 ));
$this->registerFieldValidator( "blogMaxMainPageItems", $val );
// the rest of validators, as normal...
$this->registerFieldValidator( "blogMaxRecentItems", new IntegerValidator());
More information about the pLog-svn
mailing list