Log missing view or request files.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2990 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
266e669dde
commit
160c0d4fa2
|
@ -112,7 +112,10 @@ if ( isset( $_REQUEST['request'] ) )
|
|||
foreach ( getSkinIncludes( 'ajax/'.$request.'.php', true, true ) as $includeFile )
|
||||
{
|
||||
if ( !file_exists( $includeFile ) )
|
||||
{
|
||||
error_log( "Request '$request' does not exist" );
|
||||
die( "Request '$request' does not exist" );
|
||||
}
|
||||
require_once $includeFile;
|
||||
}
|
||||
return;
|
||||
|
@ -124,7 +127,10 @@ else
|
|||
foreach ( $includeFiles as $includeFile )
|
||||
{
|
||||
if ( !file_exists( $includeFile ) )
|
||||
{
|
||||
error_log( "View '$view' does not exist" );
|
||||
die( "View '$view' does not exist" );
|
||||
}
|
||||
require_once $includeFile;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue