<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -43,7 +43,7 @@ class syntax_plugin_feed extends DokuWiki_Syntax_Plugin {
     return array(
       'author' =&gt; 'Esther Brunner',
       'email'  =&gt; 'wikidesign@gmail.com',
-      'date'   =&gt; '2006-12-20',
+      'date'   =&gt; '2007-01-16',
       'name'   =&gt; 'Feed Plugin',
       'desc'   =&gt; 'Generates feeds for other plugins',
       'url'    =&gt; 'http://www.wikidesign.ch/en/plugin/feed/start',
@@ -57,25 +57,23 @@ class syntax_plugin_feed extends DokuWiki_Syntax_Plugin {
     $this-&gt;Lexer-&gt;addSpecialPattern('\{\{\w+?feed&gt;.+?\}\}', $mode, 'plugin_feed');
   }
 
-  /**
-   * Handle the match
-   */
   function handle($match, $state, $pos, &amp;$handler){
+    global $ID;
+    
     $match = substr($match, 2, -2); // strip markup
     list($feed, $data) = explode('&gt;', $match, 2);
     $feed = substr($feed, 0, -4);
     list($params, $title) = explode('|', $data, 2);
     list($param1, $param2) = explode('?', $params, 2);
+    
+    if (($param1 == '*') || ($param1 == ':')) $param1 = '';
+    elseif ($param1 == '.') $param1 = getNS($ID);
+    else $param1 = cleanID($param1);
 
-    return array($feed, cleanID($param1), trim($param2), trim($title));
+    return array($feed, $param1, trim($param2), trim($title));
   }
 
-  /**
-   * Create output
-   */
   function render($mode, &amp;$renderer, $data){
-    global $ID;
-    
     list($feed, $p1, $p2, $title) = $data;
     
     $feeds = $this-&gt;_registeredFeeds();
@@ -91,10 +89,7 @@ class syntax_plugin_feed extends DokuWiki_Syntax_Plugin {
     }
     
     $fn = 'get'.ucwords($feed);
-    
-    if (($p1 == '*') || ($p1 == ':')) $p1 = '';
-    elseif ($p1 == '.') $p1 = getNS($ID);
-    
+        
     if (!$title) $title = ucwords(str_replace(array('_', ':'), array(' ', ': '), $p1));
     if (!$title) $title = ucwords(str_replace('_', ' ', $p2));
   </diff>
      <filename>syntax.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ab872cd47ffeceb291a1eaf7ba5da4acdc0071f7</id>
    </parent>
  </parents>
  <author>
    <name>wikidesign</name>
    <login>chimeric</login>
    <email>chi@chimeric.de</email>
  </author>
  <url>http://github.com/dokufreaks/plugin-feed/commit/448d90644e8b294bad85fdc4f9c806b20e65a266</url>
  <id>448d90644e8b294bad85fdc4f9c806b20e65a266</id>
  <committed-date>2007-01-16T13:13:06-08:00</committed-date>
  <authored-date>2007-01-16T13:13:06-08:00</authored-date>
  <message>13 Moved namespace checking from render to handle

darcs-hash:20070116211306-89468-8e3cfad9eca4ba5343e3ef7d0097e6f5d83329e9.gz</message>
  <tree>661bf4cf1423dabcdb143b6121501e9bbfbc36c4</tree>
  <committer>
    <name>wikidesign</name>
    <login>chimeric</login>
    <email>chi@chimeric.de</email>
  </committer>
</commit>
