Skip to content
Browse files

MDL-36958 Forum: Replaced hard-coded numbers with proper defines

  • Loading branch information...
1 parent 7d2c5cd commit d032ed7b0c7bf88067c37de6d89b91093ad3c0b2 @moquist moquist committed with rajeshtaneja Dec 1, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/forum/subscribe.php
View
8 mod/forum/subscribe.php
@@ -103,19 +103,19 @@
require_sesskey();
switch ($mode) {
case FORUM_CHOOSESUBSCRIBE : // 0
- forum_forcesubscribe($forum->id, 0);
+ forum_forcesubscribe($forum->id, FORUM_CHOOSESUBSCRIBE);
redirect($returnto, get_string("everyonecannowchoose", "forum"), 1);
break;
case FORUM_FORCESUBSCRIBE : // 1
- forum_forcesubscribe($forum->id, 1);
+ forum_forcesubscribe($forum->id, FORUM_FORCESUBSCRIBE);
redirect($returnto, get_string("everyoneisnowsubscribed", "forum"), 1);
break;
case FORUM_INITIALSUBSCRIBE : // 2
- forum_forcesubscribe($forum->id, 2);
+ forum_forcesubscribe($forum->id, FORUM_INITIALSUBSCRIBE);
redirect($returnto, get_string("everyoneisnowsubscribed", "forum"), 1);
break;
case FORUM_DISALLOWSUBSCRIBE : // 3
- forum_forcesubscribe($forum->id, 3);
+ forum_forcesubscribe($forum->id, FORUM_DISALLOWSUBSCRIBE);
redirect($returnto, get_string("noonecansubscribenow", "forum"), 1);
break;
default:

0 comments on commit d032ed7

Please sign in to comment.
Something went wrong with that request. Please try again.