mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Changing file_get/echo to include() for outputting content loaded from /vendors, to allow embedded PHP
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3166 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
77d92d58c1
commit
b785a26d5f
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@
|
||||||
if (in_array($requestPath[0], array_keys($folders))) {
|
if (in_array($requestPath[0], array_keys($folders))) {
|
||||||
if (file_exists(VENDORS . join(DS, $requestPath))) {
|
if (file_exists(VENDORS . join(DS, $requestPath))) {
|
||||||
header('Content-type: ' . $folders[$requestPath[0]]);
|
header('Content-type: ' . $folders[$requestPath[0]]);
|
||||||
e(file_get_contents(VENDORS . join(DS, $requestPath)));
|
include (VENDORS . join(DS, $requestPath));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue