summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-08 08:16:23 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-08 08:16:23 +0000
commit3958a714cda4b04ab9bfa24c13711158ae45d17c (patch)
tree1d6ee60843158402f864c55340afc03deccd9ad4 /index.php
parentf516626a293edd613cb823db88e36dcf7e1fb8f4 (diff)
downloadbrdo-3958a714cda4b04ab9bfa24c13711158ae45d17c.tar.gz
brdo-3958a714cda4b04ab9bfa24c13711158ae45d17c.tar.bz2
- some important changes to our theme API which can be summerized as:
abstract() + article() = story() abstract() and article() have been merged into a new function story() which looks like: function story($story_object, $reply) { if (!reply) { // full story } else { // main page version / abstract } } This should allow you to "compress" your theme as abstract() and article() tended to be 98% identical. => I didn't really merge your themes so I leave it up to *you* to improved the code!!! Do it ASAP as we release drupal 2.00 in 7 days. In future we'll have similar functions for other content types as for example: review($review, $reply); enquete($enquete, $reply); ...
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 49795830c..b6e8efc43 100644
--- a/index.php
+++ b/index.php
@@ -11,7 +11,7 @@ $result = db_query("SELECT stories.*, users.userid, COUNT(comments.lid) AS comme
// Display stories:
$theme->header();
-while ($story = db_fetch_object($result)) $theme->abstract($story);
+while ($story = db_fetch_object($result)) $theme->story($story);
$theme->footer();
?>