sync
[web.mtrack] / MTrackWeb / Wiki.php
index c17f01d..a1b31f8 100644 (file)
@@ -40,7 +40,7 @@ class MTrackWeb_Wiki extends MTrackWeb
             $this->title = "Browse: " . $pi;
             return;
         }
-        //DB_DataObject::debugLevel(1);
+        
         $p = DB_DataObject::Factory('Mtrack_wiki');
         $p->project_id =  $this->currentProject();
 
@@ -52,8 +52,11 @@ class MTrackWeb_Wiki extends MTrackWeb
             $px->project_id =  $this->currentProject();
             $px->orderBy('path');
             
+            $pr = DB_DataObject::factory('core_project');
+            $pr->get($px->project_id);
+            
             $ar = $px->fetchAll('path');
-            $wikidata = "## Index of pages in Wiki\n\n";
+            $wikidata = "## Index of pages in Wiki - {$pr->name} \n\n";
             foreach($ar as $pp) {
                 $wikidata .= " * [$pp](wiki:$pp)\n";
             }