Permalink
Browse files

MDL-26041 do not include lables in the list of resources

  • Loading branch information...
skodak committed Jan 23, 2011
1 parent 17e0390 commit a915dedb2ac399f70b2b3f75acd3ee924617b1ea
Showing with 3 additions and 0 deletions.
  1. +3 −0 course/resources.php
View
@@ -37,6 +37,9 @@
$modules = array();
foreach ($allmodules as $key=>$module) {
$modname = $module->name;
+ if ($modname === 'label') {
+ continue;
+ }
$libfile = "$CFG->dirroot/mod/$modname/lib.php";
if (!file_exists($libfile)) {
continue;

0 comments on commit a915ded

Please sign in to comment.