mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进case标签解析
This commit is contained in:
@@ -278,7 +278,7 @@ class Cx extends Taglib
|
|||||||
*/
|
*/
|
||||||
public function tagCase($tag, $content)
|
public function tagCase($tag, $content)
|
||||||
{
|
{
|
||||||
$value = !empty($tag['expression']) ? $tag['expression'] : $tag['value'];
|
$value = isset($tag['expression']) ? $tag['expression'] : $tag['value'];
|
||||||
$flag = substr($value, 0, 1);
|
$flag = substr($value, 0, 1);
|
||||||
if ('$' == $flag || ':' == $flag) {
|
if ('$' == $flag || ':' == $flag) {
|
||||||
$value = $this->autoBuildVar($value);
|
$value = $this->autoBuildVar($value);
|
||||||
|
|||||||
Reference in New Issue
Block a user