mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°3123 - ExtraParams check (only in dev)
This commit is contained in:
@@ -200,7 +200,9 @@ class DisplayBlock
|
||||
|
||||
foreach (array_keys($aParams) as $sParamName) {
|
||||
if (!in_array($sParamName, $aAllowedParams)) {
|
||||
throw new ApplicationException("Unknown parameter $sParamName for DisplayBlock $sStyle");
|
||||
if (utils::IsDevelopmentEnvironment()) {
|
||||
throw new ApplicationException("Unknown parameter $sParamName for DisplayBlock $sStyle");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user