<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,9 +6,12 @@
  * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html) 
  * @author     Esther Brunner &lt;wikidesign@gmail.com&gt;
  * @author     Christopher Smith &lt;chris@jalakai.co.uk&gt;
+ * @auuthor    Doug Daniels &lt;Daniels.Douglas@gmail.com&gt;
  */ 
  
-if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); 
+// must be run inside DokuWiki
+if(!defined('DOKU_INC')) die();
+
 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 
 require_once(DOKU_PLUGIN.'syntax.php'); 
   
@@ -25,7 +28,7 @@ class syntax_plugin_repo extends DokuWiki_Syntax_Plugin {
     return array( 
       'author' =&gt; 'Esther Brunner', 
       'email'  =&gt; 'wikidesign@gmail.com', 
-      'date'   =&gt; '2006-11-28', 
+      'date'   =&gt; '2007-03-14', 
       'name'   =&gt; 'Repository Plugin', 
       'desc'   =&gt; 'Show files from a remote repository with GesHi syntax highlighting', 
       'url'    =&gt; 'http://www.wikidesign.ch/en/plugin/repo/start', 
@@ -72,6 +75,9 @@ class syntax_plugin_repo extends DokuWiki_Syntax_Plugin {
     $url   = $base.$path;
 
     if ($mode == 'xhtml'){
+    
+      // prevent caching to ensure the included page is always fresh
+      $renderer-&gt;info['cache'] = false;
                         
       // output
       $renderer-&gt;header($title.$path, 5, $data[2]);
@@ -88,16 +94,7 @@ class syntax_plugin_repo extends DokuWiki_Syntax_Plugin {
       
     // for metadata renderer
     } elseif ($mode == 'metadata'){
-    
-      // list the URL as an included part of the page
       $renderer-&gt;meta['relation']['haspart'][$url] = 1;
-      
-      // set the time for cache expiration
-      if (isset($renderer-&gt;meta['date']['valid']['age']))
-        $renderer-&gt;meta['date']['valid']['age'] =
-        min($renderer-&gt;meta['date']['valid']['age'], $data[3]);
-      else
-        $renderer-&gt;meta['date']['valid']['age'] = $data[3];
     }
  
     return $ok;  
@@ -253,7 +250,7 @@ class syntax_plugin_repo extends DokuWiki_Syntax_Plugin {
 }
 
 /**
- *
+ * For html_buildlist()
  */
 function repo_list_index($item){
   global $ID;</diff>
      <filename>syntax.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e97424bdc21a9af411cb77533a22a92bf78b9d53</id>
    </parent>
  </parents>
  <author>
    <name>wikidesign</name>
    <email>chi@chimeric.de</email>
  </author>
  <url>http://github.com/dokufreaks/plugin-repo/commit/1df649e454d6ebfd1c3f5d175d25f12d67a458d1</url>
  <id>1df649e454d6ebfd1c3f5d175d25f12d67a458d1</id>
  <committed-date>2007-03-14T07:03:58-07:00</committed-date>
  <authored-date>2007-03-14T07:03:58-07:00</authored-date>
  <message>4 Fixed double caching bug

darcs-hash:20070314140358-89468-fa1645575c638bdf781112012d49c7a712deff75.gz</message>
  <tree>18ec203c6779030be46989d181ec4d98189d0055</tree>
  <committer>
    <name>wikidesign</name>
    <email>chi@chimeric.de</email>
  </committer>
</commit>
