* fix glob error.

This commit is contained in:
wangyidong
2015-02-10 16:09:32 +08:00
parent 33f5ca6e73
commit 13e6b3d91b
5 changed files with 33 additions and 15 deletions
+7 -2
View File
@@ -39,5 +39,10 @@
</div>
<div id='querybox' class='<?php if($browseType =='bysearch') echo 'show';?>'></div>
</div>
<?php foreach(glob(dirname(dirname(__FILE__)) . "/ext/view/featurebar.*.html.hook.php") as $fileName) include_once $fileName; ?>
<?php
$headerHooks = glob(dirname(dirname(__FILE__)) . "/ext/view/featurebar.*.html.hook.php");
if(!empty($headerHooks))
{
foreach($headerHooks as $fileName) helper::import($fileName);
}
?>