修改标签库的方法命名 取消 import标签

This commit is contained in:
thinkphp
2016-06-23 18:37:46 +08:00
parent ebc862e5fb
commit 57ca7a376b
4 changed files with 46 additions and 81 deletions

View File

@@ -672,7 +672,7 @@ class Template
*/
public function parseTagLib($tagLib, &$content, $hide = false)
{
if (strpos($tagLib, '\\')) {
if (false !== strpos($tagLib, '\\')) {
// 支持指定标签库的命名空间
$className = $tagLib;
$tagLib = substr($tagLib, strrpos($tagLib, '\\') + 1);