summaryrefslogtreecommitdiff
path: root/community/gphpedit/doc-fix.patch
blob: 42dae5f72b79b82213bba396a41ed42741157ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- gphpedit-0.9.91/src/tab.c.orig	2008-07-08 00:21:04.000000000 +0200
+++ gphpedit-0.9.91/src/tab.c	2008-07-08 00:20:50.000000000 +0200
@@ -562,6 +562,17 @@
 	if (long_filename)
 		return long_filename;
 
+	// For ArchLinux - KISS ;)
+	long_filename = tab_help_try_filename("/usr/share/doc/php/html/function.", command, ".html");
+	if (long_filename)
+		return long_filename;
+	long_filename = tab_help_try_filename("/usr/share/doc/php/html/ref.", command, ".html");
+	if (long_filename)
+		return long_filename;
+	long_filename = tab_help_try_filename("/usr/share/doc/php/html/", command, NULL);
+	if (long_filename)
+		return long_filename;
+
 	// For Gentoo, as much as I love it - it's twatty to put docs in a version specific folder like this!
 	long_filename = tab_help_try_filename("/usr/doc/php-docs-200403/html/function.", command, ".html");
 	if (long_filename)