不好意思,急糊涂了,下面是error_log显示的信息,我现在只在plugin里放了一个flickr做测试
[error] [client 192.168.1.7] PHP Fatal error: Only variables can be passed by reference in /web/html/blog/class/plugin/pluginmanager.class.php on line 204, referer:
http://192.168.1.251/blog/admin.php?op=controlCenter不知道这是个什么错误?我查了是以下代码:
foreach( $pluginFiles as $pluginFile ) {
if( File::isDir($pluginFile)) {
// build up the name of the file
$pluginId = array_pop(explode("/", $pluginFile));
$pluginFileName = "plugin".$pluginId.".class.php";
$pluginFullPath = PLOG_CLASS_PATH."$pluginFile/$pluginFileName";
// and try to include it
if( File::isReadable( $pluginFile."/".$pluginFileName )) {
$pluginList[] = $pluginId;
}
}
}