|
|
minor bug in preview.php
Posted under Development by jsilence on Saturday May 26 2001 @ 12:02PM EDT
|
When you configure your phpWebLog not to have topics, the admin can still add stories to the default topic 'General' via the 'add story' link in the admin menu. This makes sense when you want your weblog to be an announcement website only. However, preview.php sets the topic to 0 instead of 1, thus it does not show up on the website.
Change line 58 from
$sql .= $CONF["Topics"]>0 ? $Topic : 0;
to
$sql .= $CONF["Topics"]>0 ? $Topic : 1;
to fix it.
This is the first bug I submit and fix for an Opensource project. Tataaa. Now I hope no one jells at me: "It was meant to be that way you i****!"
-rolf
|
|
|
|
|
|
|