diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-29 19:50:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-29 19:50:31 +0000 |
commit | 04ad9b8af902385be50011360da2a2dc9b9785be (patch) | |
tree | ed748dd5256076bdaafe7474ca1287acc515e5ae /includes/theme.inc | |
parent | 57eb908a8fe4e4d1ae7b9021c34903ef7267481d (diff) | |
download | brdo-04ad9b8af902385be50011360da2a2dc9b9785be.tar.gz brdo-04ad9b8af902385be50011360da2a2dc9b9785be.tar.bz2 |
- fixed issue depricated call-by-reference issues
- fixed small visual glitch in includes/function.inc
- changed SQL tables around a bit to be more consistent
(result: small changes to a lot of different files)
- improved robustness of includes/node.inc
- improved output of cron.module
- improved output of node.php
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 3ac8ded06..5ba2daa10 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -18,7 +18,7 @@ function theme_link($separator = " | ") { "<A HREF=\"submit.php\">". t("submit") ."</A>", "<A HREF=\"module.php?mod=diary\">". t("diary") ."</A>", "<A HREF=\"account.php\">". t("account") ."</A>", - "<A HREF=\"module.php?mod=book\">". t("help") ."</A>"); + "<A HREF=\"module.php?mod=book\">". t("handbook") ."</A>"); return implode($separator, $links); } @@ -80,7 +80,7 @@ function theme_blocks($region, $theme) { switch (strrchr($PHP_SELF, "/")) { case "/node.php": if ($region != "left") { - if ($user->id) $node = db_fetch_object(db_query("SELECT * FROM nodes WHERE nid = '$id'")); + if ($user->id) $node = db_fetch_object(db_query("SELECT * FROM node WHERE nid = '$id'")); if ($node->status == $status[queued]) theme_moderation_results($theme, $node); // else theme_new_headlines($theme); } @@ -118,7 +118,7 @@ function theme_moderation_results($theme, $node) { // depricated -> new block strategy // function theme_new_headlines($theme, $num = 10) { - $result = db_query("SELECT nid, title FROM nodes WHERE status = 2 AND type = 'story' ORDER BY nid DESC LIMIT $num"); + $result = db_query("SELECT nid, title FROM node WHERE status = 2 AND type = 'story' ORDER BY nid DESC LIMIT $num"); while ($node = db_fetch_object($result)) $content .= "<LI><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></LI>\n"; $theme->box(t("Latest headlines"), $content); } |