mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 16:58:31 -04:00
pass OLANG as a function parm
This commit is contained in:
1 parent
4f94c63102
commit
aa6bf31cbd
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -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
|
||||
|
||||
@@ -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 = ' (<a id="' .$ohndx. '" class="optionhelp" href="#">?</a>)';
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user