Skip to content

Commit

Permalink
More format_text() calls...
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 1, 2004
1 parent f85e2d3 commit 2a135a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions mod/glossary/edit.html
Expand Up @@ -17,7 +17,7 @@
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td width="150" align=right><p><b><?php echo get_string("concept","glossary") ?>:</b></p></td>
<td><input type="text" name="concept" size=30 value="<?php p($newentry->concept) ?>"></td>
<td><input type="text" name="concept" size=30 value="<?php p(clean_text($newentry->concept)) ?>"></td>
</tr>
<tr>
<td align="right"><p><b><?php echo get_string("categories","glossary") ?>:</b></p></td>
Expand All @@ -35,7 +35,7 @@
echo "selected " ;
}
}
echo "value=\"$category->id\">$category->name</option>\n";
echo "value=\"$category->id\">".clean_text($category->name)."</option>\n";
}
}
echo "</select>\n";
Expand All @@ -53,7 +53,7 @@
?></b></p>
</td>
<td valign="top">
<textarea rows="2" name="aliases" cols="20"><?php p($newentry->aliases) ?></textarea>
<textarea rows="2" name="aliases" cols="20"><?php p(clean_text($newentry->aliases)) ?></textarea>
</td>
</tr>
<tr>
Expand Down
6 changes: 3 additions & 3 deletions mod/glossary/editcategories.php
Expand Up @@ -12,7 +12,7 @@
optional_variable($usedynalink); // category ID
optional_variable($confirm); // confirm the action

optional_variable($name); // confirm the action
optional_variable($name); // confirm the name

$name = clean_text($name);

Expand Down Expand Up @@ -102,7 +102,7 @@
echo "<p align=\"center\">" . get_string("delete"). " " . get_string("category","glossary") . "<font size=\"3\">";

print_simple_box_start("center","40%", "#FFBBBB");
echo "<center><b>$category->name</b><br>";
echo "<center><b>".format_text($category->name)."</b><br>";

$num_entries = count_records("glossary_entries_categories","categoryid",$category->id);
if ( $num_entries ) {
Expand Down Expand Up @@ -202,7 +202,7 @@
<tr bgcolor="<?php p($THEME->cellheading2)?>">
<td width="90%" align="left">
<?php
echo "<b>$category->name</b> <font size=-1>($num_entries " . get_string("entries","glossary") . ")</font>";
echo "<b>".format_text($category->name)."</b> <font size=-1>($num_entries " . get_string("entries","glossary") . ")</font>";
?>
</td>
<td width="10%" align="center"><b>
Expand Down

0 comments on commit 2a135a5

Please sign in to comment.