Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv31221
Modified Files:
jBlog_functions.inc.php jBlog_layout.php
Log Message:
dont store extended entries if we dont use them
Index: jBlog_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_functions.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- jBlog_functions.inc.php 4 Mar 2003 22:37:25 -0000 1.9
+++ jBlog_functions.inc.php 4 Mar 2003 22:49:50 -0000 1.10
@@ -259,7 +259,7 @@
echo $entries[$x]["title"];
echo "</span>";
echo "<div class='jBlog_entry'>";
- if($extended) {
+ if($extended && strlen($entries[$x]["extended"])) {
echo nl2br(jBlog_emoticate(jBlog_markup_text($entries[$x]["extended"])));
} else {
echo nl2br(jBlog_emoticate(jBlog_markup_text($entries[$x]["body"])));
@@ -683,12 +683,8 @@
if (!is_numeric($entry["id"])) $entry["id"] = "NULL";
if (!is_numeric($entry["timestamp"])) $entry["timestamp"] = time();
- if(!preg_match("/\S/", $entry["extended"])) {
- $entry["extended"] = $entry["body"];
- } else {
- if($entry["extended"] !== $entry["body"]) {
- $exflag = 1;
- }
+ if(strlen($entry["extended"])) {
+ $exflag = 1;
}
$querystring = "REPLACE INTO ".$jBlog["dbPrefix"]."entries
(id, title, timestamp, body, extended, comments, exflag, author, authorid)
Index: jBlog_layout.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_layout.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- jBlog_layout.php 4 Mar 2003 00:43:58 -0000 1.3
+++ jBlog_layout.php 4 Mar 2003 22:49:51 -0000 1.4
@@ -107,7 +107,8 @@
?>
<a href='?jBlog[action]=archives'>Older...</a><p>
<b>Superuser:</b><br>
- <a href="<?=$jBlog['jBlogHTTPPath']?>jBlog_admin.php">$ su -</a>
+ <a href="<?=$jBlog['jBlogHTTPPath']?>jBlog_admin.php">$ su -</a><p>
+ This blog powered by <a href="http://sourceforge.net/projects/php-blog">jBlog</a>!
</td>
</tr>
</table>
|