[pLog-svn] r5404 - plog/branches/lifetype-1.2/class/action/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun May 13 08:17:23 EDT 2007


Author: jondaley
Date: 2007-05-13 08:17:23 -0400 (Sun, 13 May 2007)
New Revision: 5404

Modified:
   plog/branches/lifetype-1.2/class/action/admin/admincleanupaction.class.php
Log:
started work on the cleanup/getPlugin stuff so register() is called prior to use. I haven't yet set the bloginfo back to the correct value at the end, nor watched the stack to see what is being called, but I wanted to check this in now

Modified: plog/branches/lifetype-1.2/class/action/admin/admincleanupaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admincleanupaction.class.php	2007-05-13 11:05:16 UTC (rev 5403)
+++ plog/branches/lifetype-1.2/class/action/admin/admincleanupaction.class.php	2007-05-13 12:17:23 UTC (rev 5404)
@@ -177,7 +177,17 @@
 
 			$blogs = new Blogs();
         	$activeBlogs = $blogs->getAllBlogs( BLOG_STATUS_ACTIVE );
+                // Get the plugin manager
+//            $plugMgr =& PluginManager::getPluginManager();
 
+        	foreach( $activeBlogs as $blogInfo ) {
+	            $this->_pm->setBlogInfo( $blogInfo);
+	            $this->_pm->loadPlugins( "admin" );
+                $this->_pm->getPlugins();
+	            // Send the EVENT_POST_ADMIN_PURGE_TEMP_FOLDER message
+	            $this->_pm->notifyEvent( EVENT_POST_ADMIN_PURGE_TEMP_FOLDER );            
+        	}
+			
 			$this->_message = $this->_locale->tr( "temp_folder_reset_ok" );
 			
 			return true ;
@@ -223,9 +233,6 @@
 
 			$this->setCommonData();
 
-            if($this->_op == "cleanupTemp")
-                $this->notifyEvent(EVENT_POST_ADMIN_PURGE_TEMP_FOLDER );
-
 			return true;
 		}
 	}



More information about the pLog-svn mailing list