Changeset 11081 for extensions/user_tags/include/t4u_content.class.php
- Timestamp:
- May 27, 2011, 11:02:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/user_tags/include/t4u_content.class.php
r9037 r11081 30 30 31 31 if (!$this->plugin_config->hasPermission('add')) { 32 return $content; 33 } 34 35 load_language('plugin.lang', T4U_PLUGIN_LANG); 36 37 if (version_compare(PHPWG_VERSION, '2.2', '>=') || (PHPWG_VERSION=='Colibri')) { 38 $template->func_combine_script(array('id' => 'jquery', 39 'path' => 'themes/default/js/jquery.min.js' 40 ), 41 $template->smarty 42 ); 43 } else { 44 $template->func_known_script(array('id' => 'jquery', 45 'src' => get_root_url().'themes/default/js/jquery.packed.js' 46 ), 47 $template->smarty 48 ); 32 return false; 49 33 } 50 34 … … 52 36 $template->assign('T4U_CSS', T4U_CSS); 53 37 $template->assign('T4U_IMGS', T4U_IMGS); 54 $template->assign('T4U_ADD_SCRIPT', $this->plugin_config->getActionUrl( $picture['url'], 'add'));55 $template->assign('T4U_GET_SCRIPT', $this->plugin_config->getActionUrl( $picture['url'], 'get'));38 $template->assign('T4U_ADD_SCRIPT', $this->plugin_config->getActionUrl('add', 'GET')); 39 $template->assign('T4U_GET_SCRIPT', $this->plugin_config->getActionUrl('get', 'GET')); 56 40 $template->assign('T4U_IMAGE_ID', $picture['id']); 57 $template->assign('T4U_REFERER', htmlentities($picture['url']));41 $template->assign('T4U_REFERER', urlencode($picture['url'])); 58 42 $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete')); 59 43
Note: See TracChangeset
for help on using the changeset viewer.