Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -87,12 +87,18 @@ class _Template extends \IPS\Theme\Template
|
||||
try
|
||||
{
|
||||
$f = fopen( static::$file, 'r' );
|
||||
|
||||
if( $f === FALSE )
|
||||
{
|
||||
throw new \RuntimeException();
|
||||
}
|
||||
|
||||
flock( $f, LOCK_SH );
|
||||
include_once( static::$file );
|
||||
flock( $f, LOCK_UN );
|
||||
fclose( $f );
|
||||
}
|
||||
catch( \ParseError $e )
|
||||
catch( \ParseError | \RuntimeException )
|
||||
{
|
||||
@unlink( static::$file );
|
||||
|
||||
|
||||
Reference in new issue
Block a user