functions.inc.php:

- pacol(): use Lang::read instead of global $PALANG (which is undefined
  when called from a *Handler class)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1234 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent 40dfc881c2
commit 7b15c4b47d

@ -406,10 +406,8 @@ function safecookie ($param, $default="") {
* @return array for $struct
*/
function pacol($allow_editing, $display_in_form, $display_in_list, $type, $PALANG_label, $PALANG_desc, $default = "", $options = array(), $not_in_db=0, $select="", $extrafrom="") {
global $PALANG;
if ($PALANG_label != '') $PALANG_label = $PALANG[$PALANG_label];
if ($PALANG_desc != '') $PALANG_desc = $PALANG[$PALANG_desc ];
if ($PALANG_label != '') $PALANG_label = Lang::Read($PALANG_label);
if ($PALANG_desc != '') $PALANG_desc = Lang::Read($PALANG_desc );
return array(
'editable' => $allow_editing,

Loading…
Cancel
Save