mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
"Fixes #3449, Dispatcher using wrong filename for cache lookup"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6110 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
aa86d05b96
commit
063faf5a9c
1 changed files with 2 additions and 2 deletions
|
@ -635,9 +635,9 @@ class Dispatcher extends Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Configure::read('Cache.check') === true) {
|
if (Configure::read('Cache.check') === true) {
|
||||||
$filename = CACHE . 'views' . DS . convertSlash($url) . '.php';
|
$filename = CACHE . 'views' . DS . convertSlash($this->here) . '.php';
|
||||||
if (!file_exists($filename)) {
|
if (!file_exists($filename)) {
|
||||||
$filename = CACHE . 'views' . DS . convertSlash($url) . '_index.php';
|
$filename = CACHE . 'views' . DS . convertSlash($this->here) . '_index.php';
|
||||||
}
|
}
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
if (!class_exists('View')) {
|
if (!class_exists('View')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue