added validation rules
This commit is contained in:
parent
c87a7dc1f2
commit
bb89fa334b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue