MDL-45414 wiki: fix broken image

This commit is contained in:
Marina Glancy
2014-05-06 11:28:48 +08:00
parent c61ed39712
commit 43b01f065d
+4 -2
View File
@@ -1418,8 +1418,10 @@ function wiki_print_upload_table($context, $filearea, $fileitemid, $deleteupload
*/
function wiki_build_tree($page, $node, &$keys) {
$content = array();
static $icon;
$icon = new pix_icon('f/odt', '');
static $icon = null;
if ($icon === null) {
$icon = new pix_icon('f/text-24', '');
}
$pages = wiki_get_linked_pages($page->id);
foreach ($pages as $p) {
$key = $page->id . ':' . $p->id;