[pLog-svn] r3596 - plog/trunk/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Jun 16 20:06:04 GMT 2006
Author: oscar
Date: 2006-06-16 20:06:03 +0000 (Fri, 16 Jun 2006)
New Revision: 3596
Modified:
plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
Log:
fix for updating the blog settings when custom subdomains are not in use
--This line, and thise below, will be ignored--
M admin/adminupdateblogsettingsaction.class.php
Modified: plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2006-06-16 20:02:20 UTC (rev 3595)
+++ plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2006-06-16 20:06:03 UTC (rev 3596)
@@ -51,9 +51,11 @@
$this->registerField( "blogLinkCategoriesOrder" );
$this->registerField( "blogEnableAutosaveDrafts" );
$this->registerField( "blogShowInSummary" );
- $this->registerField( "blogSendNotification" );
- $this->registerFieldValidator( "blogSubDomain", new DomainValidator());
- $this->registerFieldValidator( "blogMainDomain", new DomainValidator());
+ $this->registerField( "blogSendNotification" );
+ if( Subdomains::getSubdomainsEnabled()) {
+ $this->registerFieldValidator( "blogSubDomain", new DomainValidator());
+ $this->registerFieldValidator( "blogMainDomain", new DomainValidator());
+ }
// set the view that we're going to use
$view = new AdminBlogSettingsView( $this->_blogInfo );
$view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
More information about the pLog-svn
mailing list