Changeset 2846 in subversion


Ignore:
Timestamp:
Aug 7, 2009 12:10:24 PM (4 years ago)
Author:
thomasb
Message:

New utility function for plugins to create urls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_plugin.php

    r2518 r2846  
    209209    } 
    210210  } 
     211   
     212  /** 
     213   * Generate an absolute URL to the given resource within the current 
     214   * plugin directory 
     215   * 
     216   * @param string The file name 
     217   * @return string Absolute URL to the given resource 
     218   */ 
     219  public function url($fn) 
     220  { 
     221      return $this->api->url . $this->resource_url($fn); 
     222  } 
    211223 
    212224  /** 
Note: See TracChangeset for help on using the changeset viewer.