Skip to content
Snippets Groups Projects
Commit f12fa061 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- various small updates:

   + fixed 2 small HTML typos in meta.module
   + better watchdog messages in comment.module
   + fixed typo in block.module
parent 82a51e7b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -14,7 +14,7 @@ function block_perm() {
}
function block_link($type) {
if ($type == "admin" && user_access("adminsiter blocks")) {
if ($type == "admin" && user_access("administer blocks")) {
$links[] = "<a href=\"admin.php?mod=block\">blocks</a>";
}
......
......@@ -14,7 +14,7 @@ function block_perm() {
}
function block_link($type) {
if ($type == "admin" && user_access("adminsiter blocks")) {
if ($type == "admin" && user_access("administer blocks")) {
$links[] = "<a href=\"admin.php?mod=block\">blocks</a>";
}
......
......@@ -37,7 +37,7 @@ function comment_edit($id) {
function comment_save($id, $edit) {
db_query("UPDATE comments SET subject = '". check_input($edit[subject]) ."', comment = '". check_input($edit[comment]) ."' WHERE cid = '$id'");
watchdog("message", "comment: modified '$edit[subject]'");
watchdog("special", "comment: modified '$edit[subject]'");
}
function comment_overview() {
......
......@@ -37,7 +37,7 @@ function comment_edit($id) {
function comment_save($id, $edit) {
db_query("UPDATE comments SET subject = '". check_input($edit[subject]) ."', comment = '". check_input($edit[comment]) ."' WHERE cid = '$id'");
watchdog("message", "comment: modified '$edit[subject]'");
watchdog("special", "comment: modified '$edit[subject]'");
}
function comment_overview() {
......
......@@ -117,7 +117,7 @@ function meta_overview() {
$result = db_query("SELECT * FROM collection ORDER BY name");
$output .= "<H3>Collection overview</H3>";
$output .= "<TABLE BORDER=\"1\" CELLSPADDING=\"2\" CELLSPACING=\"2\">\n";
$output .= "<TABLE BORDER=\"1\" cellpadding=\"2\" CELLSPACING=\"2\">\n";
$output .= " <TR><TH>name</TH><TH>node types</TH><TH>operations</TH></TR>\n";
while ($collection = db_fetch_object($result)) {
$output .= " <TR><TD>". check_output($collection->name) ."</TD><TD>". check_output($collection->types) ."</TD><TD><A HREF=\"admin.php?mod=meta&type=collection&op=edit&id=$collection->cid\">edit collection</A></TD></TR>\n";
......@@ -127,7 +127,7 @@ function meta_overview() {
$result = db_query("SELECT * FROM tag ORDER BY name");
$output .= "<H3>Meta-tag overview</H3>";
$output .= "<TABLE BORDER=\"1\" CELLSPADDING=\"2\" CELLSPACING=\"2\">\n";
$output .= "<TABLE BORDER=\"1\" cellpadding=\"2\" CELLSPACING=\"2\">\n";
$output .= " <TR><TH>name</TH><TH>collections</TH><TH>meta attributes</TH><TH>operations</TH></TR>\n";
while ($tag = db_fetch_object($result)) {
$output .= " <TR><TD>". check_output($tag->name) ."</TD><TD>". check_output($tag->collections) ."</TD><TD>". check_output($tag->attributes) ."</TD><TD><A HREF=\"admin.php?mod=meta&type=tag&op=edit&id=$tag->tid\">edit tag</A></TD></TR>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment