Skip to content

Commit

Permalink
chore: coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Sep 8, 2015
1 parent e896543 commit dcb3969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function pages_tools_flush_tree_html_cache(ElggEntity $entity) {

$dh = opendir($cache_dir);
if (empty($dh)) {
return $return;
return;
}

while (($filename = readdir($dh)) !== false) {
Expand Down
5 changes: 4 additions & 1 deletion views/default/pages_tools/sidebar/tree.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

$entity = elgg_extract('entity', $vars);
if (!pages_tools_is_valid_page($entity)) {
return;
}

$root_page = pages_tools_get_root_page($entity);

Expand All @@ -19,4 +22,4 @@

pages_tools_save_tree_html_to_cache($root_page, $tree_data);

echo $tree_data;
echo $tree_data;

0 comments on commit dcb3969

Please sign in to comment.