From: garvinhicking Date: Tue, 15 Jan 2008 15:36:21 +0000 (+0000) Subject: Commit change from Alexander Hess, use ordering of links X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e508a2dcea762e7833c89f1bf59edcf0f23c9caa;p=s9y.git Commit change from Alexander Hess, use ordering of links --- 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 = '