Ignore:
Timestamp:
Jan 18, 2013, 8:22:05 PM (11 years ago)
Author:
nikrou
Message:

Fix issue with path in help pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/include/t4u_config.class.php

    r20251 r20252  
    6060
    6161  private function get_config_file_dir() {
    62     return $GLOBALS['conf']['data_location'].'/plugins/';
     62    return PHPWG_ROOT_PATH . $GLOBALS['conf']['data_location'].'plugins/';
    6363  }
    6464
     
    9090  }
    9191
    92   public function plugin_admin_menu($menu) {
    93     array_push($menu,
    94                array('NAME' => $this->plugin_name,
    95                      'URL' => get_admin_plugin_menu_link(T4U_PLUGIN_ROOT .'/admin.php')
    96                      )
    97                );
     92  public static function plugin_admin_menu($menu) {
     93    $menu[] = array('NAME' => T4U_PLUGIN_NAME,
     94                    'URL' => get_admin_plugin_menu_link(T4U_PLUGIN_ROOT .'/admin.php')
     95                    );
     96
    9897    return $menu;
    9998  }
    10099
    101   public function get_admin_help($help_content, $page) {
     100  public static function get_admin_help($help_content, $page) {
    102101    return load_language('help/'.$page.'.html',
    103                          $this->plugin_dir .'/',
    104                          array('return'=>true)
    105                         );
     102                         T4U_PLUGIN_ROOT .'/',
     103                         array('return' => true)
     104                        );
    106105  }
    107106 
     
    115114  private function setDefaults() {
    116115    include_once $this->plugin_dir.'/include/default_values.inc.php';
    117 
     116   
    118117    foreach ($default_values as $key => $value) {
    119118      if (empty($this->config[$key])) {
    120         $this->config[$key] = $value;
     119        $this->config[$key] = $value;
    121120      }
    122121    }
Note: See TracChangeset for help on using the changeset viewer.