From: stronk7 Date: Sat, 28 Aug 2004 11:13:48 +0000 (+0000) Subject: Now action is checked and defaults to edit. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cf1ab7c300328e0369cfe951de6fdbcf09cd8145;p=moodle.git Now action is checked and defaults to edit. Thanks skodak! Bug 1813 (http://moodle.org/bugs/bug.php?op=show&bugid=1813) Merged from MOODLE_14_STABLE --- diff --git a/mod/glossary/comment.php b/mod/glossary/comment.php index bb7c649ce3..b8be1fd1c2 100644 --- a/mod/glossary/comment.php +++ b/mod/glossary/comment.php @@ -8,7 +8,7 @@ require_variable($eid); // Entry ID optional_variable($cid,0); // Comment ID - optional_variable($action,"add"); // Action to perform + optional_variable($action,"edit"); // Action to perform optional_variable($confirm,0); // Confirm the action $action = strtolower($action); @@ -49,13 +49,17 @@ switch ( $action ){ case "add": $straction = get_string("addingcomment","glossary"); - break; + break; case "edit": $straction = get_string("editingcomment","glossary"); - break; + break; case "delete": $straction = get_string("deletingcomment","glossary"); - break; + break; + default: + $action = "edit"; + $straction = get_string("editingcomment","glossary"); + break; } $strglossaries = get_string("modulenameplural", "glossary"); $strglossary = get_string("modulename", "glossary");