{dede:php}标签错误BUG的修正办法
修正:
php.lib.php中的lib_php函数中,增加global $dsql和global $db;
以下为引用的内容:
<?php if(!defined('DEDEINC')) exit('Request Error!'); function lib_php(&$ctag, &$refObj) { global $dsql; global $db; $phpcode = trim($ctag->GetInnerText()); if($phpcode=='') return ''; ob_start(); extract($GLOBALS, EXTR_SKIP); eval($phpcode); $revalue = ob_get_contents(); ob_clean(); return $revalue; } //zuola.net ?> |