- various small updates:
+ fixed 2 small HTML typos in meta.module + better watchdog messages in comment.module + fixed typo in block.module3-00
parent
82a51e7b75
commit
f12fa06152
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue