summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorTim Roes <mail@timroes.de>2012-04-12 23:29:24 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-04-16 19:42:49 +0200
commitc8095cd786d9a27b3f7ed2d55a463ac69020fcbb (patch)
tree885edfa2cf3ec63fa2fe876d979c4fba34943c27 /inc
parent28be31cd273e011d9c9b8ea7b7223497ec28ebd7 (diff)
downloadrpg-c8095cd786d9a27b3f7ed2d55a463ac69020fcbb.tar.gz
rpg-c8095cd786d9a27b3f7ed2d55a463ac69020fcbb.tar.bz2
Remote search is aware of useheading option
Diffstat (limited to 'inc')
-rw-r--r--inc/RemoteAPICore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php
index 80deb7377..9da493210 100644
--- a/inc/RemoteAPICore.php
+++ b/inc/RemoteAPICore.php
@@ -302,7 +302,7 @@ class RemoteAPICore {
'mtime' => filemtime($file),
'size' => filesize($file),
'snippet' => $snippet,
- 'title' => p_get_first_heading($id)
+ 'title' => useHeading('navigation') ? p_get_first_heading($id) : $id
);
}
return $pages;