Changeset 20252 for extensions/user_tags/include/t4u_config.class.php
- Timestamp:
- Jan 18, 2013, 8:22:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/user_tags/include/t4u_config.class.php
r20251 r20252 60 60 61 61 private function get_config_file_dir() { 62 return $GLOBALS['conf']['data_location'].'/plugins/';62 return PHPWG_ROOT_PATH . $GLOBALS['conf']['data_location'].'plugins/'; 63 63 } 64 64 … … 90 90 } 91 91 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 98 97 return $menu; 99 98 } 100 99 101 public function get_admin_help($help_content, $page) {100 public static function get_admin_help($help_content, $page) { 102 101 return load_language('help/'.$page.'.html', 103 $this->plugin_dir.'/',104 array('return'=>true)105 102 T4U_PLUGIN_ROOT .'/', 103 array('return' => true) 104 ); 106 105 } 107 106 … … 115 114 private function setDefaults() { 116 115 include_once $this->plugin_dir.'/include/default_values.inc.php'; 117 116 118 117 foreach ($default_values as $key => $value) { 119 118 if (empty($this->config[$key])) { 120 119 $this->config[$key] = $value; 121 120 } 122 121 }
Note: See TracChangeset
for help on using the changeset viewer.