Permalink
Browse files

MDL-21009 Group selector must use absolute links in order to work wit…

…h javascript off (last minute stupid testing fix)
  • Loading branch information...
1 parent dcca8df commit 8562968ec90746fe079ae49a28abae9f8f817616 @sammarshallou sammarshallou committed Nov 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/grouplib.php
View
@@ -433,7 +433,7 @@ function groups_print_activity_menu($cm, $urlroot, $return=false, $hideallpartic
// Display error if urlroot is not absolute (this causes the non-JS version
// to break)
- if (strpos($urlroot, 'htxtp') !== 0) { // Will also work for https
+ if (strpos($urlroot, 'http') !== 0) { // Will also work for https
debugging('groups_print_activity_menu requires absolute URL for ' .
'$urlroot, not <tt>' . s($urlroot) . '</tt>. Example: ' .
'groups_print_activity_menu($cm, $CFG->wwwroot . \'/mod/mymodule/view.php?id=13\');',

0 comments on commit 8562968

Please sign in to comment.