mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Removed code that was not needed any longer from Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6569 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
32d9de160d
commit
49a092f1d0
1 changed files with 1 additions and 9 deletions
|
@ -391,15 +391,7 @@ class Set extends Object {
|
||||||
if (!isset($contexts[0])) {
|
if (!isset($contexts[0])) {
|
||||||
$contexts = array($data);
|
$contexts = array($data);
|
||||||
}
|
}
|
||||||
if (is_string($path)) {
|
$tokens = array_slice(explode('/', $path), 1);
|
||||||
$last = substr($path, -1, 1);
|
|
||||||
if ($last == '*' && substr($path, -2, 1) != '/') {
|
|
||||||
$path = substr($path, 0, -1);
|
|
||||||
} else {
|
|
||||||
$last = false;
|
|
||||||
}
|
|
||||||
$tokens = array_slice(explode('/', $path), 1);
|
|
||||||
}
|
|
||||||
do {
|
do {
|
||||||
$token = array_shift($tokens);
|
$token = array_shift($tokens);
|
||||||
$conditions = false;
|
$conditions = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue