[pLog-svn] r2285 - plog/branches/plog-1.0.2/class/action/admin
mark at devel.plogworld.net
mark at devel.plogworld.net
Wed Jul 6 05:43:58 GMT 2005
Author: mark
Date: 2005-07-06 05:43:57 +0000 (Wed, 06 Jul 2005)
New Revision: 2285
Modified:
plog/branches/plog-1.0.2/class/action/admin/adminaction.class.php
Log:
Add new "switch to blog" feature, http://bugs.plogworld.net/view.php?id=612
I add a new value "userBlogs" to adminaction, it contains a bloginfo array that belong to this specific user.
Modified: plog/branches/plog-1.0.2/class/action/admin/adminaction.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/action/admin/adminaction.class.php 2005-07-06 05:42:21 UTC (rev 2284)
+++ plog/branches/plog-1.0.2/class/action/admin/adminaction.class.php 2005-07-06 05:43:57 UTC (rev 2285)
@@ -34,6 +34,7 @@
var $_config;
var $_locale;
var $_pm;
+ var $_userBlogs;
/**
* Constructor.
@@ -74,6 +75,9 @@
// fetch the site locale
$this->_locale =& $this->getLocale();
+
+ $users =& new Users();
+ $this->_userBlogs = $users->getUsersBlogs( $this->_userInfo->getId(), BLOG_STATUS_ACTIVE );
}
/**
@@ -135,6 +139,7 @@
$this->_pm->getPlugins();
$this->_view->setValue( "user", $this->_userInfo );
+ $this->_view->setValue( "userBlogs", $this->_userBlogs);
$this->_view->setUserInfo( $this->_userInfo );
$this->_view->setValue( "blog", $this->_blogInfo );
$this->_view->setValue( "blogsettings", $this->_blogInfo->getSettings());
More information about the pLog-svn
mailing list