added validation rules

This commit is contained in:
Roland Gruber 2017-12-15 16:52:56 +01:00
parent c87a7dc1f2
commit bb89fa334b
1 changed files with 6 additions and 1 deletions

View File

@ -1567,7 +1567,7 @@ function printJsIncludes($prefix) {
$jsFiles = array(); $jsFiles = array();
$jsEntry = $jsDir->read(); $jsEntry = $jsDir->read();
while ($jsEntry !== false) { while ($jsEntry !== false) {
if (substr($jsEntry, strlen($jsEntry) - 3, 3) == '.js') { if ((substr($jsEntry, strlen($jsEntry) - 3, 3) == '.js') || (substr($jsEntry, strlen($jsEntry) - 4, 4) == '.php')) {
$jsFiles[] = $jsEntry; $jsFiles[] = $jsEntry;
} }
$jsEntry = $jsDir->read(); $jsEntry = $jsDir->read();
@ -1578,6 +1578,11 @@ function printJsIncludes($prefix) {
} }
} }
/**
* LAM exception with title and message.
*
* @author Roland Gruber
*/
class LAMException extends Exception { class LAMException extends Exception {
private $title; private $title;