function get($pi='')
{
// non 'json' request...
+
if (!isset($_REQUEST['ajax_body'])) {
$this->title = "Browse: " . $pi;
return;
}
- //DB_DataObject::debugLevel(1);
+
$p = DB_DataObject::Factory('Mtrack_wiki');
$p->project_id = $this->currentProject();
$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";
}
function post()
{
-
+ DB_DataObject::debugLevel(1);
+
$au = $this->getAuthUser();
if (!$au) {
// autherr?