[pLog-svn] r6525 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Mon Jun 9 04:01:47 EDT 2008
Author: mark
Date: 2008-06-09 04:01:47 -0400 (Mon, 09 Jun 2008)
New Revision: 6525
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdateblogsettingsaction.class.php
Log:
Get all inputs validate.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateblogsettingsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateblogsettingsaction.class.php 2008-06-09 08:00:51 UTC (rev 6524)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateblogsettingsaction.class.php 2008-06-09 08:01:47 UTC (rev 6525)
@@ -40,24 +40,23 @@
$this->registerFieldValidator( "blogTemplate", new StringValidator());
$this->registerFieldValidator( "blogCategory", new IntegerValidator());
$this->registerFieldValidator( "blogArticlesOrder", new IntegerValidator());
- // TODO: validate all of these
- $this->registerField( "blogAbout" );
- $this->registerField( "blogShowMoreEnabled" );
- $this->registerField( "blogEnableHtmlarea" );
- $this->registerField( "blogEnablePullDownMenu" );
- $this->registerField( "blogCommentsEnabled" );
- $this->registerField( "blogCommentsOrder" );
- $this->registerField( "blogArticlesOrder" );
- $this->registerField( "blogShowFuturePosts" );
- $this->registerField( "blogFirstDayOfWeek" );
- $this->registerField( "blogTimeOffset" );
- $this->registerField( "properties" );
- $this->registerField( "blogCategoriesOrder" );
- $this->registerField( "blogLinkCategoriesOrder" );
- $this->registerField( "blogEnableAutosaveDrafts" );
- $this->registerField( "blogShowInSummary" );
- $this->registerField( "blogSendNotification" );
- $this->registerField( "blogCommentOnlyRegisteredUsers" );
+ // TODO: validate all of these
+ $this->registerFieldValidator( "blogAbout", new StringValidator(), true );
+ $this->registerFieldValidator( "blogShowMoreEnabled", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogEnableHtmlarea", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogEnablePullDownMenu", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogCommentsEnabled", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogCommentsOrder", new IntegerValidator() );
+ $this->registerFieldValidator( "blogArticlesOrder", new IntegerValidator() );
+ $this->registerFieldValidator( "blogShowFuturePosts", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogFirstDayOfWeek", new IntegerValidator() );
+ $this->registerFieldValidator( "blogTimeOffset", new IntegerValidator( true ) );
+ $this->registerFieldValidator( "blogCategoriesOrder", new IntegerValidator() );
+ $this->registerFieldValidator( "blogLinkCategoriesOrder", new IntegerValidator() );
+ $this->registerFieldValidator( "blogEnableAutosaveDrafts", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogShowInSummary", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogSendNotification", new IntegerValidator(), true );
+ $this->registerFieldValidator( "blogCommentOnlyRegisteredUsers", new IntegerValidator(), true );
if( Subdomains::getSubdomainsEnabled()) {
$this->registerFieldValidator( "blogSubDomain", new DomainValidator());
$this->registerFieldValidator( "blogMainDomain", new DomainValidator());
@@ -141,7 +140,6 @@
$this->_blogInfo->setBlog( Textfilter::filterAllHTML($this->_request->getValue( "blogName" )));
$this->_blogInfo->setSettings( $blogSettings );
$this->_blogInfo->setTemplate( $this->_request->getValue( "blogTemplate" ));
- $this->_blogInfo->setProperties( $this->_request->getValue( "properties" ));
$this->_blogInfo->setBlogCategoryId( $this->_request->getValue( "blogCategory" ));
$this->_blogInfo->setMangledBlogName( $this->_blogInfo->getBlog(), true );
$this->_blogInfo->setShowInSummary( Textfilter::checkboxToBoolean( $this->_request->getValue( "blogShowInSummary" )));
More information about the pLog-svn
mailing list