From e508a2dcea762e7833c89f1bf59edcf0f23c9caa Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 15 Jan 2008 15:36:21 +0000 Subject: [PATCH] Commit change from Alexander Hess, use ordering of links --- .../serendipity_plugin_entrylinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php b/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php index f619c82..4d2db3f 100644 --- a/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php +++ b/plugins/serendipity_plugin_entrylinks/serendipity_plugin_entrylinks.php @@ -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 = '