From 1cead0cbf40468233f1f644ee6bf11835c74737a Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 23 Sep 2009 08:32:09 -0400
Subject: [PATCH] - sorting by message index - added 'index_sort' option (#1485936)

---
 program/include/rcube_plugin.php |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_plugin.php b/program/include/rcube_plugin.php
index d3ab7af..5e37764 100644
--- a/program/include/rcube_plugin.php
+++ b/program/include/rcube_plugin.php
@@ -208,6 +208,18 @@
       $this->api->add_content($this->api->output->button($p), $container);
     }
   }
+  
+  /**
+   * Generate an absolute URL to the given resource within the current
+   * plugin directory
+   *
+   * @param string The file name
+   * @return string Absolute URL to the given resource
+   */
+  public function url($fn)
+  {
+      return $this->api->url . $this->resource_url($fn);
+  }
 
   /**
    * Make the given file name link into the plugin directory

--
Gitblit v1.9.1