mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 18:42:40 +00:00
commit
6599422a7a
2 changed files with 6 additions and 0 deletions
|
@ -516,6 +516,7 @@ class CakeRequest implements ArrayAccess {
|
|||
* @return void
|
||||
*/
|
||||
public function addDetector($name, $options) {
|
||||
$name = strtolower($name);
|
||||
if (isset($this->_detectors[$name]) && isset($options['options'])) {
|
||||
$options = Set::merge($this->_detectors[$name], $options);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue