git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2745 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-02-08 17:38:43 +00:00
parent c3fcf0a1e9
commit 22f22baa32
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ foreach ( $files as $file )
require_once( $tmpFile ); require_once( $tmpFile );
unlink( $tmpFile ); unlink( $tmpFile );
$pattern = '/^(.+SLANG = array\(\n)(.+)(\);.+)$/sU'; $pattern = '/^(.+SLANG = array\(\n)(.+)(\);.+?)/sU';
//echo "P:'$pattern'\n"; //echo "P:'$pattern'\n";
if ( !preg_match( $pattern, $rawCode, $fileParts ) ) if ( !preg_match( $pattern, $rawCode, $fileParts ) )
die( "Can't find SLANG array\n" ); die( "Can't find SLANG array\n" );
@ -104,7 +104,7 @@ foreach ( $files as $file )
fwrite( $fp, $newCode ); fwrite( $fp, $newCode );
fclose( $fp ); fclose( $fp );
} }
//rename( $newFile, $file ); rename( $newFile, $file );
} }
?> ?>