[pLog-svn] r3459 - plog/trunk/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu May 25 02:16:09 GMT 2006
Author: mark
Date: 2006-05-25 02:15:34 +0000 (Thu, 25 May 2006)
New Revision: 3459
Modified:
plog/trunk/class/action/admin/adminaddblogtemplateaction.class.php
plog/trunk/class/action/admin/adminaddtemplateaction.class.php
plog/trunk/class/action/admin/admindeleteblogtemplateaction.class.php
plog/trunk/class/action/admin/admindeletetemplatesaction.class.php
Log:
Damn... Fixed the bug http://bugs.lifetype.net/view.php?id=910 again.
I modify to the global add/deletemplate action, that's wrong... :(
Modified: plog/trunk/class/action/admin/adminaddblogtemplateaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddblogtemplateaction.class.php 2006-05-24 09:13:40 UTC (rev 3458)
+++ plog/trunk/class/action/admin/adminaddblogtemplateaction.class.php 2006-05-25 02:15:34 UTC (rev 3459)
@@ -218,6 +218,13 @@
die();
}
+ // We should update the session too, or we will get data dirty
+ include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
+ $blogs = new Blogs();
+ $blogInfo = $blogs->getBlogInfo( $this->_blogInfo->getId() );
+ $this->_session->setValue( "blogInfo", $blogInfo );
+ $this->saveSession();
+
return $result;
}
}
Modified: plog/trunk/class/action/admin/adminaddtemplateaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddtemplateaction.class.php 2006-05-24 09:13:40 UTC (rev 3458)
+++ plog/trunk/class/action/admin/adminaddtemplateaction.class.php 2006-05-25 02:15:34 UTC (rev 3459)
@@ -208,13 +208,6 @@
$this->setCommonData();
- // We should update the session too, or we will get data dirty
- include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
- $blog = new Blogs();
- $blogInfo = $blogs->getBlogInfo( $this->_blogInfo->getId() );
- $this->_session->setValue( "blogInfo", $blogInfo );
- $this->saveSession();
-
return $result;
}
}
Modified: plog/trunk/class/action/admin/admindeleteblogtemplateaction.class.php
===================================================================
--- plog/trunk/class/action/admin/admindeleteblogtemplateaction.class.php 2006-05-24 09:13:40 UTC (rev 3458)
+++ plog/trunk/class/action/admin/admindeleteblogtemplateaction.class.php 2006-05-25 02:15:34 UTC (rev 3459)
@@ -79,6 +79,13 @@
if( $errorMessage != "" ) $this->_view->setErrorMessage( $errorMessage );
if( $successMessage != "" ) $this->_view->setSuccessMessage( $successMessage );
$this->setCommonData();
+
+ // We should update the session too, or we will get data dirty
+ include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
+ $blogs = new Blogs();
+ $blogInfo = $blogs->getBlogInfo( $this->_blogInfo->getId() );
+ $this->_session->setValue( "blogInfo", $blogInfo );
+ $this->saveSession();
return true;
}
Modified: plog/trunk/class/action/admin/admindeletetemplatesaction.class.php
===================================================================
--- plog/trunk/class/action/admin/admindeletetemplatesaction.class.php 2006-05-24 09:13:40 UTC (rev 3458)
+++ plog/trunk/class/action/admin/admindeletetemplatesaction.class.php 2006-05-25 02:15:34 UTC (rev 3459)
@@ -82,13 +82,6 @@
if( $successMessage != "" ) $this->_view->setSuccessMessage( $successMessage );
$this->setCommonData();
- // We should update the session too, or we will get data dirty
- include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
- $blog = new Blogs();
- $blogInfo = $blogs->getBlogInfo( $this->_blogInfo->getId() );
- $this->_session->setValue( "blogInfo", $blogInfo );
- $this->saveSession();
-
return true;
}
}
More information about the pLog-svn
mailing list