From: cindy li Date: Tue, 30 Aug 2011 18:03:24 +0000 (-0000) Subject: Fixed the issue that the check of "avail_in_mobile" on the top level tool pages was... X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=atutor.git;a=commitdiff_plain;h=84009aba9c494964893807f6498f609454c43ce2 Fixed the issue that the check of "avail_in_mobile" on the top level tool pages was missed. --- diff --git a/docs/tools/index.php b/docs/tools/index.php index d226b28a0..e959d8ac7 100644 --- a/docs/tools/index.php +++ b/docs/tools/index.php @@ -23,7 +23,7 @@ $keys = array_keys($module_list); echo '
    '; foreach ($keys as $module_name) { $module = $module_list[$module_name]; - if ($module->getPrivilege() && authenticate($module->getPrivilege(), AT_PRIV_RETURN) && ($parent = $module->getChildPage('tools/index.php'))) { + if ($module->getPrivilege() && authenticate($module->getPrivilege(), AT_PRIV_RETURN) && ($parent = $module->getChildPage('tools/index.php')) && page_available($parent)) { echo '
  1. ' . $module->getName() . ' '; if (isset($_pages[$parent]['children'])) { echo '
      ';