diff --git a/header.php b/header.php
index aa1ee538..79d71f9a 100644
--- a/header.php
+++ b/header.php
@@ -108,7 +108,7 @@
if ($forum_user['g_read_board'] == '1' && $forum_user['g_search'] == '1')
{
$forum_head['search'] = '';
- $forum_head['opensearch'] = '';
+ $forum_head['opensearch'] = '';
}
$forum_head['author'] = '';
diff --git a/include/url/Default/forum_urls.php b/include/url/Default/forum_urls.php
index 41340186..2ecd4dcf 100644
--- a/include/url/Default/forum_urls.php
+++ b/include/url/Default/forum_urls.php
@@ -38,6 +38,7 @@
'mark_forum_read' => 'misc.php?action=markforumread&fid=$1&csrf_token=$2',
'new_topic' => 'post.php?fid=$1',
'new_reply' => 'post.php?tid=$1',
+ 'opensearch' => 'misc.php?action=opensearch',
'post' => 'viewtopic.php?pid=$1#p$1',
'profile_about' => 'profile.php?section=about&id=$1',
'profile_identity' => 'profile.php?section=identity&id=$1',
diff --git a/include/url/File_based/forum_urls.php b/include/url/File_based/forum_urls.php
index 26d29904..90f770bc 100644
--- a/include/url/File_based/forum_urls.php
+++ b/include/url/File_based/forum_urls.php
@@ -40,6 +40,7 @@
'mark_forum_read' => 'mark-forum$1-read-$2.html',
'new_topic' => 'new-topic$1.html',
'new_reply' => 'new-reply$1.html',
+ 'opensearch' => 'misc.php?action=opensearch',
'post' => 'post$1.html#p$1',
'profile_about' => 'user$1-about.html',
'profile_identity' => 'user$1-identity.html',
diff --git a/include/url/File_based_(fancy)/forum_urls.php b/include/url/File_based_(fancy)/forum_urls.php
index fe004b67..100e4309 100644
--- a/include/url/File_based_(fancy)/forum_urls.php
+++ b/include/url/File_based_(fancy)/forum_urls.php
@@ -41,6 +41,7 @@
'mark_forum_read' => 'mark-forum$1-read-$2.html',
'new_topic' => 'new-topic$1.html',
'new_reply' => 'new-reply$1.html',
+ 'opensearch' => 'misc.php?action=opensearch',
'post' => 'post$1.html#p$1',
'profile_about' => 'user$1-about.html',
'profile_identity' => 'user$1-identity.html',
diff --git a/include/url/Folder_based/forum_urls.php b/include/url/Folder_based/forum_urls.php
index 2a0939b5..43ce21fc 100644
--- a/include/url/Folder_based/forum_urls.php
+++ b/include/url/Folder_based/forum_urls.php
@@ -38,6 +38,7 @@
'mark_forum_read' => 'mark/forum/$1/read/$2/',
'new_topic' => 'new/topic/$1/',
'new_reply' => 'new/reply/$1/',
+ 'opensearch' => 'misc.php?action=opensearch',
'post' => 'post/$1/#p$1',
'profile_about' => 'user/$1/about/',
'profile_identity' => 'user/$1/identity/',
diff --git a/include/url/Folder_based_(fancy)/forum_urls.php b/include/url/Folder_based_(fancy)/forum_urls.php
index 8ad255d6..8959f242 100644
--- a/include/url/Folder_based_(fancy)/forum_urls.php
+++ b/include/url/Folder_based_(fancy)/forum_urls.php
@@ -39,6 +39,7 @@
'mark_forum_read' => 'mark/forum/$1/read/$2/',
'new_topic' => 'new/topic/$1/',
'new_reply' => 'new/reply/$1/',
+ 'opensearch' => 'misc.php?action=opensearch',
'post' => 'post/$1/#p$1',
'profile_about' => 'user/$1/about/',
'profile_identity' => 'user/$1/identity/',
diff --git a/misc.php b/misc.php
index 0c11692c..38355675 100644
--- a/misc.php
+++ b/misc.php
@@ -152,7 +152,6 @@
redirect(forum_link($forum_url['forum'], array($fid, sef_friendly($forum_name))), $lang_misc['Mark forum read redirect']);
}
-
// OpenSearch plugin?
else if ($action == 'opensearch')
{
@@ -170,7 +169,7 @@
echo "\t".'utf-8'."\n";
echo "\t".''.$base_url.'/favicon.ico'."\n";
echo "\t".''."\n";
- echo "\t".''."\n";
+ echo "\t".''."\n";
echo "\t".''.forum_htmlencode($forum_config['o_admin_email']).''."\n";
if ($forum_config['o_show_version'] == '1')
@@ -178,7 +177,7 @@
else
echo "\t".'PunBB'."\n";
- echo "\t".''.$base_url.'/search.php'."\n";
+ echo "\t".''.forum_link($forum_url['search']).''."\n";
echo ''."\n";
exit;