[geeklog-cvs] geeklog: Fixed requesting the URL in plugin_getiteminfo

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jun 11 16:23:02 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/536f78878a7a
changeset: 7102:536f78878a7a
user:      Dirk Haun <dirk at haun-online.de>
date:      Thu Jun 11 18:56:23 2009 +0200
description:
Fixed requesting the URL in plugin_getiteminfo

diffstat:

 public_html/docs/history |  1 +
 system/lib-story.php     |  7 +++----
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r da0af061667f -r 536f78878a7a public_html/docs/history
--- a/public_html/docs/history	Thu Jun 11 16:30:20 2009 +0200
+++ b/public_html/docs/history	Thu Jun 11 18:56:23 2009 +0200
@@ -11,6 +11,7 @@
 + Comment moderation and editable comments, by Jared Wenerd
 
 Changes since 1.6.0b2:
+- Fixed an error that occured after deleting a trackback [Dirk]
 - Replace autotags in search results (bug #0000887) [Dirk]
 - Don't insist on an email adress when editing a Remote User (bug #0000885)
   [Dirk]
diff -r da0af061667f -r 536f78878a7a system/lib-story.php
--- a/system/lib-story.php	Thu Jun 11 16:30:20 2009 +0200
+++ b/system/lib-story.php	Thu Jun 11 18:56:23 2009 +0200
@@ -717,10 +717,9 @@
             $fields[] = 'title';
             break;
         case 'url':
-            if ($sid == '*') {
-                // in this case, we need the sid to build the URL
-                $fields[] = 'sid';
-            }
+            // needed for $sp_id == '*', but also in case we're only requesting
+            // the URL (so that $fields isn't emtpy)
+            $fields[] = 'sid';
             break;
         default:
             // nothing to do



More information about the geeklog-cvs mailing list