]> git.mjollnir.org Git - moodle.git/commitdiff
Use delete_question() to delete question, bug 5275
authorgustav_delius <gustav_delius>
Fri, 21 Apr 2006 06:50:51 +0000 (06:50 +0000)
committergustav_delius <gustav_delius>
Fri, 21 Apr 2006 06:50:51 +0000 (06:50 +0000)
question/showbank.php

index 318ea7b9a4c4e4e7a8163723e30a35d9d9f96dad..867505b21f66d804d72373ca4531f8ea78978cdc 100644 (file)
@@ -70,7 +70,7 @@
                                error('Was not able to hide question');
                             }
                         } else {
-                            delete_records("question", "id", $questionid);
+                            delete_question($questionid);
                         }
                     }
                 }