- Changed "user blogs" to "blogs". Patch by Al.
parent
9863dd5a71
commit
d592f76565
|
@ -213,7 +213,7 @@ function blog_link($type, $node = 0, $main) {
|
|||
$links = array();
|
||||
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = l(t("user blogs"), "blog", array("title" => t("Read the latest blog entries.")));
|
||||
$links[] = l(t("blogs"), "blog", array("title" => t("Read the latest blog entries.")));
|
||||
}
|
||||
|
||||
if ($type == "menu.create" && user_access("maintain personal blog")) {
|
||||
|
@ -241,14 +241,14 @@ function blog_link($type, $node = 0, $main) {
|
|||
function blog_block($op = "list", $delta = 0) {
|
||||
global $user;
|
||||
if ($op == "list") {
|
||||
$block[0]["info"] = t("User blogs");
|
||||
$block[0]["info"] = t("Blogs");
|
||||
return $block;
|
||||
}
|
||||
else {
|
||||
if (user_access("access content")) {
|
||||
$block["content"] = node_title_list(db_query_range("SELECT u.uid, u.name, n.created, n.title, n.nid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.nid DESC", 0, 10));
|
||||
$block["content"] .= "<div align=\"right\" id=\"blog_more\">". l(t("more"), "blog", array("title" => t("Read the latest blog entries."))) ."</div>";
|
||||
$block["subject"] = t("User blogs");
|
||||
$block["subject"] = t("Blogs");
|
||||
}
|
||||
return $block;
|
||||
}
|
||||
|
|
|
@ -213,7 +213,7 @@ function blog_link($type, $node = 0, $main) {
|
|||
$links = array();
|
||||
|
||||
if ($type == "page" && user_access("access content")) {
|
||||
$links[] = l(t("user blogs"), "blog", array("title" => t("Read the latest blog entries.")));
|
||||
$links[] = l(t("blogs"), "blog", array("title" => t("Read the latest blog entries.")));
|
||||
}
|
||||
|
||||
if ($type == "menu.create" && user_access("maintain personal blog")) {
|
||||
|
@ -241,14 +241,14 @@ function blog_link($type, $node = 0, $main) {
|
|||
function blog_block($op = "list", $delta = 0) {
|
||||
global $user;
|
||||
if ($op == "list") {
|
||||
$block[0]["info"] = t("User blogs");
|
||||
$block[0]["info"] = t("Blogs");
|
||||
return $block;
|
||||
}
|
||||
else {
|
||||
if (user_access("access content")) {
|
||||
$block["content"] = node_title_list(db_query_range("SELECT u.uid, u.name, n.created, n.title, n.nid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.nid DESC", 0, 10));
|
||||
$block["content"] .= "<div align=\"right\" id=\"blog_more\">". l(t("more"), "blog", array("title" => t("Read the latest blog entries."))) ."</div>";
|
||||
$block["subject"] = t("User blogs");
|
||||
$block["subject"] = t("Blogs");
|
||||
}
|
||||
return $block;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue