Permalink
Browse files

Added support for glossary "view entry" log action.

  • Loading branch information...
1 parent e4fa95c commit c90b35f7fbaed2e6182a15084660647001c59b0f stronk7 committed Mar 13, 2005
Showing with 11 additions and 0 deletions.
  1. +11 −0 mod/glossary/restorelib.php
@@ -631,6 +631,17 @@ function glossary_restore_logs($restore,$log) {
}
}
break;
+ case "view entry":
+ if ($log->cmid) {
+ //Get the new_id of the glossary_entry (to recode the info and url field)
+ $ent = backup_getid($restore->backup_unique_code,"glossary_entries",$log->info);
+ if ($ent) {
+ $log->url = "showentry.php?&eid=".$ent->new_id;
+ $log->info = $ent->new_id;
+ $status = true;
+ }
+ }
+ break;
case "add comment":
if ($log->cmid) {
//Extract the entryid from the url field

0 comments on commit c90b35f

Please sign in to comment.