[Svn] r2289 - in branches/devel-api: plugins/emoticons program/include

trac at roundcube.net trac at roundcube.net
Wed Feb 11 23:35:40 CET 2009


Author: thomasb
Date: 2009-02-11 16:35:39 -0600 (Wed, 11 Feb 2009)
New Revision: 2289

Modified:
   branches/devel-api/plugins/emoticons/emoticons.php
   branches/devel-api/program/include/rcube_plugin.php
   branches/devel-api/program/include/rcube_plugin_api.php
Log:
Add urlbase property to plugins + sample comment block

Modified: branches/devel-api/plugins/emoticons/emoticons.php
===================================================================
--- branches/devel-api/plugins/emoticons/emoticons.php	2009-02-11 13:38:38 UTC (rev 2288)
+++ branches/devel-api/plugins/emoticons/emoticons.php	2009-02-11 22:35:39 UTC (rev 2289)
@@ -1,7 +1,13 @@
 <?php
 
 /**
- * Sample plugin to replace remoticons in plain text message body with real icons
+ * Display Emoticons
+ *
+ * Sample plugin to replace emoticons in plain text message body with real icons
+ *
+ * @version 1.0.1
+ * @author Thomas Bruederli
+ * @website http://roundcube.net
  */
 class emoticons extends rcube_plugin
 {

Modified: branches/devel-api/program/include/rcube_plugin.php
===================================================================
--- branches/devel-api/program/include/rcube_plugin.php	2009-02-11 13:38:38 UTC (rev 2288)
+++ branches/devel-api/program/include/rcube_plugin.php	2009-02-11 22:35:39 UTC (rev 2289)
@@ -39,6 +39,7 @@
     $this->ID = get_class($this);
     $this->api = $api;
     $this->home = $api->dir . DIRECTORY_SEPARATOR . $this->ID;
+    $this->urlbase = $api->url . $this->ID . '/';
   }
   
   /**

Modified: branches/devel-api/program/include/rcube_plugin_api.php
===================================================================
--- branches/devel-api/program/include/rcube_plugin_api.php	2009-02-11 13:38:38 UTC (rev 2288)
+++ branches/devel-api/program/include/rcube_plugin_api.php	2009-02-11 22:35:39 UTC (rev 2289)
@@ -60,11 +60,6 @@
   private function __construct()
   {
     $rcmail = rcmail::get_instance();
-    
-    // only active in devel_mode for now
-    if (!$rcmail->config->get('devel_mode'))
-      return;
-    
     $this->dir = realpath($rcmail->config->get('plugins_dir'));
   }
   

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list