summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-04-15 06:25:14 -0700
committerAndreas Gohr <andi@splitbrain.org>2012-04-15 06:25:14 -0700
commitbfa6027906ad620cbfec29154f4857d8879b398c (patch)
tree5a1d2e80e787620acac8816bb81cf0915e06e93d
parentb5cc8f4b6bd4593e984fa6009532fae8eda57a7f (diff)
parent5529fa3167d83c7fd8ab03d077c2b46163b20c24 (diff)
downloadrpg-bfa6027906ad620cbfec29154f4857d8879b398c.tar.gz
rpg-bfa6027906ad620cbfec29154f4857d8879b398c.tar.bz2
Merge pull request #94 from timroes/master
Added page title to search result in remote interface
-rw-r--r--inc/RemoteAPICore.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php
index 546832100..9da493210 100644
--- a/inc/RemoteAPICore.php
+++ b/inc/RemoteAPICore.php
@@ -302,6 +302,7 @@ class RemoteAPICore {
'mtime' => filemtime($file),
'size' => filesize($file),
'snippet' => $snippet,
+ 'title' => useHeading('navigation') ? p_get_first_heading($id) : $id
);
}
return $pages;