mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Applying patch from teemow, fixes schema file generation so files with trailing characters do not match. Fixes #5854
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7905 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b2b4c4be47
commit
8a0fb1904a
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class SchemaShell extends Shell {
|
||||||
$count = 1;
|
$count = 1;
|
||||||
if (!empty($result[1])) {
|
if (!empty($result[1])) {
|
||||||
foreach ($result[1] as $file) {
|
foreach ($result[1] as $file) {
|
||||||
if (preg_match('/schema(?:[_\d]*)?\.php/', $file)) {
|
if (preg_match('/schema(?:[_\d]*)?\.php$/', $file)) {
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue