Browse Source

Update, do not use eval for get_plugin_lang() method - refs BT#9092

Daniel Barreto 10 years ago
parent
commit
7825df05a1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/inc/lib/internationalization.lib.php

+ 3 - 3
main/inc/lib/internationalization.lib.php

@@ -3348,12 +3348,12 @@ function get_datepicker_langage_code() {
 
 /**
  * Returns the variable translated
- * @param $variable the string to translate
- * @param $pluginName the Plugin name
+ * @param string $variable the string to translate
+ * @param string $pluginName the Plugin name
  * @return string the variable translated
  */
 function get_plugin_lang($variable, $pluginName) {
-    eval("\$plugin = {$pluginName}::create();");
+    $plugin = $pluginName::create();
     return $plugin->get_lang($variable);
 }
 /**