[pLog-svn] r2060 - plog/branches/plog-1.1-ben/class/plugin

ork at devel.plogworld.net ork at devel.plogworld.net
Mon May 23 16:09:07 GMT 2005


Author: ork
Date: 2005-05-23 16:09:07 +0000 (Mon, 23 May 2005)
New Revision: 2060

Modified:
   plog/branches/plog-1.1-ben/class/plugin/pluginbase.class.php
   plog/branches/plog-1.1-ben/class/plugin/pluginmanager.class.php
Log:
changed includes and added a version string to pluginbase


Modified: plog/branches/plog-1.1-ben/class/plugin/pluginbase.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/plugin/pluginbase.class.php	2005-05-23 16:08:24 UTC (rev 2059)
+++ plog/branches/plog-1.1-ben/class/plugin/pluginbase.class.php	2005-05-23 16:09:07 UTC (rev 2060)
@@ -12,15 +12,6 @@
      */
 
 	include_once( PLOG_CLASS_PATH."class/object/object.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/database/adodb/adodb.inc.php" );
-//    include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/controller/admincontroller.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/action/blogaction.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/security/pipelinerequest.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/security/pipelineresult.class.php" );
-//    include_once( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
 
     /**
      * \ingroup Plugin
@@ -52,6 +43,11 @@
         var $id = "";
 
         /**
+         * This should be filled with the author of the plugins
+         */
+        var $version = "";
+
+        /**
          * Set this to the html code that you would like to display when
          * configuring this plugin.
          */
@@ -205,6 +201,8 @@
          */
         function registerAdminAction( $key, $actionClass )
         {
+            include_once( PLOG_CLASS_PATH."class/controller/admincontroller.class.php" );
+
             AdminController::registerAction( $key, $actionClass );
             
             return true;
@@ -219,6 +217,8 @@
          */
         function registerBlogAction( $key, $actionClass )
         {
+            include_once( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
+
             BlogController::registerAction( $key, $actionClass );
             
             return true;

Modified: plog/branches/plog-1.1-ben/class/plugin/pluginmanager.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/plugin/pluginmanager.class.php	2005-05-23 16:08:24 UTC (rev 2059)
+++ plog/branches/plog-1.1-ben/class/plugin/pluginmanager.class.php	2005-05-23 16:09:07 UTC (rev 2060)
@@ -238,6 +238,8 @@
          */
         function _loadPluginLocale( $pluginId, $locale )
         {
+            require_once( PLOG_CLASS_PATH . "class/locale/locales.class.php" );
+
             return( Locales::getPluginLocale( $pluginId, $locale ));
         }
 




More information about the pLog-svn mailing list