Skip to content

Commit

Permalink
按照沉水的建议改了template入口处将tags里的变量提升全局的变量名;
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowsoft committed Jan 2, 2025
1 parent 1f8f75a commit a239218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zb_system/function/c_system_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
define('ZC_VERSION_MAJOR', '1');
define('ZC_VERSION_MINOR', '7');
define('ZC_VERSION_BUILD', '4');
define('ZC_VERSION_COMMIT', '3300');
define('ZC_VERSION_CODENAME', 'Beta');
define('ZC_VERSION_COMMIT', '3400');
define('ZC_VERSION_CODENAME', 'Shelter');
define('ZC_VERSION', ZC_VERSION_MAJOR . '.' . ZC_VERSION_MINOR . '.' . ZC_VERSION_BUILD . '.' . ZC_VERSION_COMMIT);
if (strcasecmp(ZC_VERSION_CODENAME, 'Beta') == 0 || strcasecmp(ZC_VERSION_CODENAME, 'Alpha') == 0) {
define('ZC_VERSION_DISPLAY', ZC_VERSION_MAJOR . '.' . ZC_VERSION_MINOR . '.' . ZC_VERSION_BUILD . '.' . ZC_VERSION_COMMIT . ' ' . ZC_VERSION_CODENAME);
Expand Down
4 changes: 2 additions & 2 deletions zb_system/function/lib/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,8 @@ public function Display($entryPage = "")
}

// 入口处将tags里的变量提升全局
foreach ($this->templateTags as $key => &$value) {
$$key = &$value;
foreach ($this->templateTags as $tagKey => &$tagValue) {
$$tagKey = &$tagValue;
}

include $file;
Expand Down

0 comments on commit a239218

Please sign in to comment.