diff --git a/html/ajax.php b/html/ajax.php index 9c99807f6..3d2142118 100644 --- a/html/ajax.php +++ b/html/ajax.php @@ -5,7 +5,7 @@ * The code (of the plugin) is required * Required variable in $_REQUEST * - gDossier - * - code + * - plugin_code */ require_once('class_database.php'); require_once('class_user.php'); @@ -17,10 +17,10 @@ $user=new User($cn); $user->check(true); /* if a code has been asked */ -if (isset($_REQUEST['code']) ) { +if (isset($_REQUEST['plugin_code']) ) { $ext=new Extension($cn); - $ext->search('code',$_REQUEST['code']); + $ext->search('code',$_REQUEST['plugin_code']); if ( $ext->get_parameter('id') != 0 ) { /* security */ if ( !isset ($_SESSION['g_user']) || $ext->can_request($_SESSION['g_user']) == 0 ) { diff --git a/html/extension.php b/html/extension.php index d74fed951..dd0b79c5b 100644 --- a/html/extension.php +++ b/html/extension.php @@ -73,16 +73,16 @@ echo <<value=Extension::make_array($cn); -$a->selected=(isset($_REQUEST['code']))?strtoupper($_REQUEST['code']):''; +$a->selected=(isset($_REQUEST['plugin_code']))?strtoupper($_REQUEST['plugin_code']):''; /* no plugin available */ if ( count($a->value) == 0 ) {alert(j(_("Aucune extension disponible")));exit;} /* only one plugin available then we don't propose a choice*/ if ( count($a->value)==1 ) { - $_REQUEST['code']=$a->value[0]['value']; + $_REQUEST['plugin_code']=$a->value[0]['value']; } else { echo '
'; echo $hidden; diff --git a/include/class_extension.php b/include/class_extension.php index 7bf1235aa..6c752a2b0 100644 --- a/include/class_extension.php +++ b/include/class_extension.php @@ -31,7 +31,7 @@ * - $variable : * - id (extension.ex_id) * - name (extension.ex_name) - * - code (extension.ex_code) + * - plugin_code (extension.ex_code) * - desc (extension.ex_desc) * - enable (extension.ex_enable) * - filepath (extension.ex_file) diff --git a/include/class_html_input.php b/include/class_html_input.php index dcaf0b45f..771fbce1f 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -190,7 +190,7 @@ echo $string => property={'prop':'1','prop2':'2','prop3':'3'}; } static function extension() { - return self::hidden('code',$_REQUEST['code']); + return self::hidden('plugin_code',$_REQUEST['plugin_code']); } /*!\brief create a button with a ref diff --git a/include/ext_inc.php b/include/ext_inc.php index 6ae5979fa..349a07a85 100644 --- a/include/ext_inc.php +++ b/include/ext_inc.php @@ -1,10 +1,10 @@ search('code',$_REQUEST['code']); + $ext->search('code',$_REQUEST['plugin_code']); if ( $ext->get_parameter('id') != 0 ) { /* security */ if ( $ext->can_request($_SESSION['g_user']) == 0 ) {