]> git.mjollnir.org Git - s9y.git/commitdiff
Commit change from Alexander Hess, use ordering of links
authorgarvinhicking <garvinhicking>
Tue, 15 Jan 2008 15:36:21 +0000 (15:36 +0000)
committergarvinhicking <garvinhicking>
Tue, 15 Jan 2008 15:36:21 +0000 (15:36 +0000)
plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php

index f619c826ce44ea785a419873d95e682f763b1b64..4d2db3fa3bd319cfcc008f817b0ceadace592bfb 100644 (file)
@@ -22,7 +22,7 @@ class serendipity_plugin_entrylinks extends serendipity_plugin
         $propbag->add('description',   PLUGIN_ENTRYLINKS_BLAHBLAH);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.01');
+        $propbag->add('version',       '1.02');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -141,7 +141,7 @@ class serendipity_plugin_entrylinks extends serendipity_plugin
             }
         }
 
-        $references = serendipity_db_query("SELECT link, max(name) as name FROM {$serendipity['dbPrefix']}references WHERE entry_id = " . $id . " GROUP BY link");
+        $references = serendipity_db_query("SELECT link, max(name) as name FROM {$serendipity['dbPrefix']}references WHERE entry_id = " . $id . " AND type = '' GROUP BY link ORDER BY id");
         if (is_array($references)) {
             $links = '<ul style="margin: 5px; padding: 10px; text-align: left">';
             foreach($references AS $key => $row) {