Skip to content

Commit

Permalink
sync pmvc 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed May 28, 2021
1 parent 22b9be3 commit 57a670f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,7 @@ public function replace(&$arr, $replaces, $cb)
$replaces,
$cb
) {
foreach ($replaces as $replaceKey) {
if (false === strpos($item, '[' . $replaceKey . ']')) {
continue;
}
$item = str_replace(
'[' . $replaceKey . ']',
$cb([
'item' => $item,
'itemKey' => $key,
'replaceKey' => $replaceKey,
]),
$item
);
}
$item = \PMVC\tpl($item, $replaces, $cb);
});
}

Expand Down

0 comments on commit 57a670f

Please sign in to comment.