fix preg_replace(): No ending delimiter '/' found on line 904

This commit is contained in:
Ralf Becker 2017-10-21 14:35:05 +02:00
parent cbefc25934
commit 837fe39a0c

View File

@ -899,7 +899,7 @@ function update_api_setup($path)
throw new Exception("Could not read file '$path' to update maintenance-version!");
}
$content = preg_replace('/'.preg_quote("\$setup_info['api']['versions']['maintenance_release']", '/').'[^;]+;',
$content = preg_replace('/'.preg_quote("\$setup_info['api']['versions']['maintenance_release']", '/').'[^;]+;/',
"\$setup_info['api']['versions']['maintenance_release'] = '".$config['version'].'.'.$config['packaging']."';",
$content);