]> git.mjollnir.org Git - s9y.git/commitdiff
Added hooks to trackback listing in order to let plugins change it (the avatar plugin...
authorbrockhaus <brockhaus>
Sat, 22 Dec 2007 18:49:03 +0000 (18:49 +0000)
committerbrockhaus <brockhaus>
Sat, 22 Dec 2007 18:49:03 +0000 (18:49 +0000)
docs/NEWS
include/functions_comments.inc.php
include/functions_smarty.inc.php

index 3d78c7ae5811c057eba03123ab5059157ee53a45..1de5d462c72a97c7b93eb56e62cf612986536401 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
 Version 1.3 ()
 ------------------------------------------------------------------------
 
+    * Added hooks to trackback listing in order to let plugins change 
+      it (the avatar plugin in example) (brockhaus)
+
     * Add more verbose CSS classes to remote RSS sidebar plugin, also
       only encapsulate the first XML-Item as link. All following
       items are only encapsulated in <span>s. Also add possible
index e0b4670177c124789deb3df27095a40e2a4ec2fc..8d6f796af55ebb639afcb2cee99efbd856a52a5b 100644 (file)
@@ -304,7 +304,7 @@ function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace
         return true;
     }
 
-    $serendipity['smarty']->assign_by_ref('comments', $_smartyComments);
+    $serendipity['smarty']->assign_by_ref($smarty_block == 'COMMENTS'?'comments':'trackbacks', $_smartyComments);
     unset($_smartyComments);
 
     return serendipity_smarty_fetch($smarty_block, $smarty_file);
index 7c71bc954b66267124ea41d3dc23c707831e9d2d..8e030c57edda59f6c7d9cb789327d82f7e90b3d7 100644 (file)
@@ -744,8 +744,10 @@ function &serendipity_smarty_printTrackbacks($params, &$smarty) {
         return;
     }
 
-    $tb =& serendipity_fetchTrackbacks($params['entry']);
-    return serendipity_printTrackbacks($tb);
+    $trackbacks =& serendipity_fetchTrackbacks($params['entry']);
+
+    $out = serendipity_printComments($trackbacks, VIEWMODE_LINEAR, 0, null, 'TRACKBACKS', 'trackbacks.tpl');
+    return $out;
 }
 
 /**