[pLog-svn] r5021 - plog/branches/lifetype-1.2/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Mar 8 04:04:06 EST 2007
Author: oscar
Date: 2007-03-08 04:04:06 -0500 (Thu, 08 Mar 2007)
New Revision: 5021
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminaddblogtemplateaction.class.php
plog/branches/lifetype-1.2/class/action/admin/adminaddtemplateaction.class.php
Log:
Reported two issues regarding success and error messages when scanning for new templates.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddblogtemplateaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddblogtemplateaction.class.php 2007-03-08 08:45:55 UTC (rev 5020)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddblogtemplateaction.class.php 2007-03-08 09:04:06 UTC (rev 5021)
@@ -154,13 +154,13 @@
$templateSandbox = new TemplateSandbox();
$valid = $templateSandbox->checkTemplateFolder( $templateName, $ts->getBlogBaseTemplateFolder( $this->_blogInfo->getId()));
if( $valid < 0 ) {
- $this->_errorMessage = $this->_locale->pr( 'error_installing_template', $templateName ).': '.AdminAddTemplateAction::_checkTemplateSandboxResult( $valid ).'<br/>';
+ $this->_errorMessage .= $this->_locale->pr( 'error_installing_template', $templateName ).': '.AdminAddTemplateAction::_checkTemplateSandboxResult( $valid ).'<br/>';
$result = false;
}
else {
// otherwise, we can add it without problems
$ts->addTemplate( $templateName, $this->_blogInfo->getId());
- $this->_successMessage = $this->_locale->pr( "template_installed_ok", $templateName );
+ $this->_successMessage .= $this->_locale->pr( "template_installed_ok", $templateName );
$result = true;
}
Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddtemplateaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddtemplateaction.class.php 2007-03-08 08:45:55 UTC (rev 5020)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddtemplateaction.class.php 2007-03-08 09:04:06 UTC (rev 5021)
@@ -144,13 +144,13 @@
$templateSandbox = new TemplateSandbox();
$valid = $templateSandbox->checkTemplateFolder( $templateName, $ts->getBaseTemplateFolder());
if( $valid < 0 ) {
- $this->_errorMessage = $this->_locale->pr( 'error_installing_template', $templateName ).': '.$this->_checkTemplateSandboxResult( $valid ).'<br/>';
+ $this->_errorMessage .= $this->_locale->pr( 'error_installing_template', $templateName ).': '.$this->_checkTemplateSandboxResult( $valid ).'<br/>';
$result = false;
}
else {
// otherwise, we can add it without problems
$ts->addTemplate( $templateName );
- $this->_successMessage = $this->_locale->pr( 'template_installed_ok', $templateName).'<br/>';
+ $this->_successMessage .= $this->_locale->pr( 'template_installed_ok', $templateName).'<br/>';
$result = true;
}
More information about the pLog-svn
mailing list