Gossamer Forum
Home : Products : Links 2.0 : Discussions :

use of $db_bold on the query routine...

Quote Reply
use of $db_bold on the query routine...
Alex, on links2 you used on the
sub query (db.pl)

Code:
# Bold the results
if ($db_bold and $in{'view_records'}) {
for $i (0 .. (($#hits+1) / ($#db_cols+1)) - 1) {
$offset = $i * ($#db_cols+1);
foreach $field (@search_fields) {
$hits[$field + $offset] =~ s,(<[^>]+> )|($regexp_bold[$field]),defined($1) ? $1 : "<B>$2</B>",ge;
}
}
}

but $db_bold variable is never used on the script and also this piece of code is not immediate to understand.
I tried to force this cicle to be executed but I did not noticed any change.

What it stands for?

Thank you!!



Lepo