pass OLANG as a function parm

This commit is contained in:
Andrew Bauer committed 2020-09-11 07:51:00 -05:00
1 parent 4f94c63102
commit aa6bf31cbd
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@
if ( empty($_REQUEST['modal']) ) ajaxError('Modal Name Not Provided');
global $OLANG;
$modal = validJsStr($_REQUEST['modal']);
$data = array();
@@ -22,7 +23,7 @@ if ( ZM_OPT_USE_AUTH && (ZM_AUTH_RELAY == 'hashed') ) {
switch ( $modal ) {
case 'optionhelp' :
if ( empty($_REQUEST['ohndx']) ) ajaxError('Option Help Index Not Provided');
$data['html'] = getOptionHelpHTML($_REQUEST['ohndx']);
$data['html'] = getOptionHelpHTML($_REQUEST['ohndx'], $OLANG);
break;
default :
// Maybe don't need both
+1 -1
View File
@@ -438,7 +438,7 @@ function makeLink($url, $label, $condition=1, $options='') {
//Make it slightly easier to create a link to help text modal
function makeHelpLink($ohndx) {
$string = '<a id="' .$ohndx. '" class="optionhelp" href="#">?</a>';
$string = '&nbsp;(<a id="' .$ohndx. '" class="optionhelp" href="#">?</a>)';
return $string;
}