mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-20 14:40:12 +02:00
Add an unique prefix to each Form- or FormElement id, unless id protection is disabled explicitly, to prevent id collisions between different containers. fixes #8460
13 lines
311 B
PHP
13 lines
311 B
PHP
<?php
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
|
|
|
/**
|
|
* Class Zend_View_Helper_Util
|
|
*/
|
|
class Zend_View_Helper_ProtectId extends Zend_View_Helper_Abstract
|
|
{
|
|
public function protectId($id) {
|
|
return Zend_Controller_Front::getInstance()->getRequest()->protectId($id);
|
|
}
|
|
}
|