Changeset 8911 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Jan 26, 2011, 12:52:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r8729 r8911 25 25 PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' 26 26 ); 27 if (!defined('ROOT_URL')) 28 define( 'ROOT_URL', get_root_url().'/' ); 29 if (!defined('AUTOSIZE_PATH_ABS')) 30 define( 31 'AUTOSIZE_PATH_ABS', 32 dirname(__FILE__).'/' 33 ); 34 35 27 36 28 37 class autosize_controler { … … 37 46 $ma_page=isset($page['body_id'])?$page['body_id']:"" ; 38 47 if ($ma_page=='thePiwiShackControllerPage') return ; 48 39 49 $my_path = dirname(__FILE__).'/'; 40 50 $template->set_filenames(array('autosize_init'=>$my_path. "template/conflit.tpl" ) ); … … 42 52 $autosize_parametres = cl_autosize_Get_Options() ; 43 53 $theme=$user['theme']; 44 $url = get_root_url(); 54 $url = get_root_url(); 55 $AUTOSIZE_PATH=AUTOSIZE_PATH; 56 57 45 58 $template->assign( 46 59 array( … … 49 62 'cl_version' => $cl_plugin['version'] , 50 63 'name' => $cl_plugin['name'] , 51 'MY_ROOT' => $url,52 64 'theme' => $theme , 53 65 'DEBUG' => $DEBUG , 54 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 66 'AUTOSIZE_PATH' => AUTOSIZE_PATH , 67 'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS, 68 'ROOT_URL' => $url , 69 ) 55 70 ); 56 71 … … 63 78 static public function cl_autosize_script_2() 64 79 { 65 global $template,$user,$conf,$picture ,$page, $cl_plugin ;80 global $template,$user,$conf,$picture ,$page, $cl_plugin,$known_script ; 66 81 $my_path = dirname(__FILE__).'/'; 67 82 $DEBUG = isset($conf['cl_debug']) ? $conf['cl_debug'] : "false" ; … … 109 124 static public function cl_autosize_affiche() 110 125 { 111 global $user, $picture, $template,$page ;126 global $user, $picture, $template,$page,$known_script; 112 127 global $content, $element_info; 113 128 global $infos_message,$erreur_message; … … 119 134 if ( isset($picture['current'])){ 120 135 $autosize_parametres = cl_autosize_Get_Options(); 121 include (AUTOSIZE_PATH."include/affiche.php"); 136 include (AUTOSIZE_PATH."include/affiche.php"); 137 122 138 if($autosize_parametres->check_icon_v == 'on'){ 123 139 $template->assign('cl_autosize_button',
Note: See TracChangeset
for help on using the changeset viewer.