Skip to content

Commit 18d4238

Browse files
committed
removing dead code
1 parent 7dc787e commit 18d4238

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

www/docs/addlink/index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@
8181
$PAGE->glossary_display_match_list($GLOSSARY);
8282
} else {
8383
// Eek! no results at all? Excellent...
84-
// Ok, so now we can see of the word(s) appear in Hansard at all.
84+
// Ok, so now we can see if the word(s) appear in Hansard at all.
8585
// The following query was modified from the hansardlist search.
8686
// However, no point checking, if the user can't add terms.
8787
if ($THEUSER->is_able_to('addterm')) {
8888

89-
$args['count'] = $GLOSSARY->hansard_count($args);
89+
$SEARCHENGINE = new SEARCHENGINE('"' . $args['s'] . '"');
90+
$args['count'] = $SEARCHENGINE->run_count();
9091
if ($args['count']) {
9192
// Display the Add definition form.
9293
$PAGE->glossary_add_link_form($args);

www/docs/addterm/index.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
) {
3333
$GLOSSARY->query = "";
3434
$args['blankform'] = 1;
35-
$URL = new URL('help_us_out');
36-
$backlink = $URL->generate();
3735
$error_message = "Sorry, that phrase appears too many times to be a useful as a link within the parliamentary record.";
3836
}
3937

0 commit comments

Comments
 (0)