no buttons in restricted mode
This commit is contained in:
parent
a9899078c4
commit
877f6db3f3
|
@ -530,6 +530,11 @@ class htmlButton extends htmlElement {
|
||||||
* @return array List of input field names and their type (name => type)
|
* @return array List of input field names and their type (name => type)
|
||||||
*/
|
*/
|
||||||
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
|
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
|
||||||
|
if ($restricted) {
|
||||||
|
// no buttons in restricted mode
|
||||||
|
logNewMessage(LOG_ERR, 'Meta HTML: Requested button in restricted mode.');
|
||||||
|
return array();
|
||||||
|
}
|
||||||
$value = '';
|
$value = '';
|
||||||
$style = '';
|
$style = '';
|
||||||
$class = '';
|
$class = '';
|
||||||
|
|
Loading…
Reference in New Issue