]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: get_parent_contexts() bugfix
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:26:15 +0000 (07:26 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:26:15 +0000 (07:26 +0000)
lib/accesslib.php

index 789c51b7eb8567eaf5087bfe8133c99a7f347b8e..3e97237f00bed99f673e552ade263b47e8b4ba78 100755 (executable)
@@ -3378,7 +3378,7 @@ function get_parent_contexts($context) {
     }
 
     $parentcontexts = substr($context->path, 1); // kill leading slash
-    $parentcontexts = explode(',', $parentcontexts);
+    $parentcontexts = explode('/', $parentcontexts);
     array_pop($parentcontexts); // and remove its own id
 
     return array_reverse($parentcontexts);