mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
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
This commit is contained in:
parent
40dfc881c2
commit
7b15c4b47d
@ -406,10 +406,8 @@ function safecookie ($param, $default="") {
|
|||||||
* @return array for $struct
|
* @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="") {
|
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 = Lang::Read($PALANG_label);
|
||||||
|
if ($PALANG_desc != '') $PALANG_desc = Lang::Read($PALANG_desc );
|
||||||
if ($PALANG_label != '') $PALANG_label = $PALANG[$PALANG_label];
|
|
||||||
if ($PALANG_desc != '') $PALANG_desc = $PALANG[$PALANG_desc ];
|
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'editable' => $allow_editing,
|
'editable' => $allow_editing,
|
||||||
|
Loading…
Reference in New Issue
Block a user