[pLog-svn] r6205 - in plog/trunk/class: action/admin file
mark at devel.lifetype.net
mark at devel.lifetype.net
Mon Mar 3 05:40:08 EST 2008
Author: mark
Date: 2008-03-03 05:40:08 -0500 (Mon, 03 Mar 2008)
New Revision: 6205
Modified:
plog/trunk/class/action/admin/admindeleteblogtemplatefileaction.class.php
plog/trunk/class/action/admin/adminupdateblogtemplatefileaction.class.php
plog/trunk/class/file/file.class.php
Log:
Fixed the delete blog template file error.
Modified: plog/trunk/class/action/admin/admindeleteblogtemplatefileaction.class.php
===================================================================
--- plog/trunk/class/action/admin/admindeleteblogtemplatefileaction.class.php 2008-03-03 09:02:26 UTC (rev 6204)
+++ plog/trunk/class/action/admin/admindeleteblogtemplatefileaction.class.php 2008-03-03 10:40:08 UTC (rev 6205)
@@ -20,11 +20,13 @@
$this->registerFieldValidator( "templateId", new TemplateNameValidator(), false);
$this->registerFieldValidator( "path", new StringValidator(), true );
- $this->registerFieldValidator( "file", new StringValidator(), false );
+ $this->registerFieldValidator( "file", new StringValidator(), false );
$view = new AdminSiteTemplatesListView( $this->_blogInfo );
$view->setErrorMessage( $this->_locale->tr( "error_deleting_template_file" ));
$this->setValidationErrorView( $view );
+ $this->blogId = $this->_blogInfo->getId();
+
$this->requirePermission( "update_blog_template" );
}
Modified: plog/trunk/class/action/admin/adminupdateblogtemplatefileaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateblogtemplatefileaction.class.php 2008-03-03 09:02:26 UTC (rev 6204)
+++ plog/trunk/class/action/admin/adminupdateblogtemplatefileaction.class.php 2008-03-03 10:40:08 UTC (rev 6205)
@@ -24,6 +24,8 @@
$view->setErrorMessage( $this->_locale->tr( "error_loading_template_file" ));
$this->setValidationErrorView( $view );
+ $this->blogId = $this->_blogInfo->getId();
+
$this->requirePermission( "update_blog_template" );
}
Modified: plog/trunk/class/file/file.class.php
===================================================================
--- plog/trunk/class/file/file.class.php 2008-03-03 09:02:26 UTC (rev 6204)
+++ plog/trunk/class/file/file.class.php 2008-03-03 10:40:08 UTC (rev 6205)
@@ -561,7 +561,7 @@
// Make destination directory
if (!File::isDir($dest)) {
- File::createDir($dest, File::FILE_DEFAULT_DIRECTORY_CREATION_MODE, true);
+ File::createDir($dest);
}
// Loop through the folder
More information about the pLog-svn
mailing list