Skip to content

Commit

Permalink
tag MDL-24893 removed case for itemtype of 'wiki_page' to refer to ta…
Browse files Browse the repository at this point in the history
…ble 'wiki_pages' , bug is a clone. (better fix in MDL-24888)
  • Loading branch information
nebgor committed Oct 28, 2010
1 parent f0f77df commit 34084e9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tag/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,6 @@ function tag_cleanup() {
$delete = true;
}
break;
case 'wiki_page': // not relying on itemtype to be a table name here, itemtype is 'wiki_page' but table name is {wiki_pages}
if ($DB->record_exists('wiki_pages', array('id'=>$instance->itemid))) {
$delete = true;
}
break;
default: // anything else, if the instance is not there, delete.
if (!$DB->record_exists($instance->itemtype, array('id'=>$instance->itemid))) {
$delete = true;
Expand Down

0 comments on commit 34084e9

Please sign in to comment.