Updated
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2745 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
c3fcf0a1e9
commit
22f22baa32
|
@ -63,7 +63,7 @@ foreach ( $files as $file )
|
|||
require_once( $tmpFile );
|
||||
unlink( $tmpFile );
|
||||
|
||||
$pattern = '/^(.+SLANG = array\(\n)(.+)(\);.+)$/sU';
|
||||
$pattern = '/^(.+SLANG = array\(\n)(.+)(\);.+?)/sU';
|
||||
//echo "P:'$pattern'\n";
|
||||
if ( !preg_match( $pattern, $rawCode, $fileParts ) )
|
||||
die( "Can't find SLANG array\n" );
|
||||
|
@ -104,7 +104,7 @@ foreach ( $files as $file )
|
|||
fwrite( $fp, $newCode );
|
||||
fclose( $fp );
|
||||
}
|
||||
//rename( $newFile, $file );
|
||||
rename( $newFile, $file );
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue