Skip to content

Commit 92720e9

Browse files
committed
Remove search page
The Google CSE was disabled quite some time ago... Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 883a675 commit 92720e9

File tree

4 files changed

+8
-39
lines changed

4 files changed

+8
-39
lines changed

pmaweb/templates/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ <h1><a href="{% url 'home' %}" rel="home"><span id="logo">phpMyAdmin</span></a>
7272
<li>Copyright &copy; 2003 - {{ current_year }} <span class="vcard"><a class="url org fn" href="{% url 'team' %}">phpMyAdmin contributors</a><a href="mailto:developers@phpmyadmin.net" class="email"></a></span></li>
7373
<li><a href="{% url 'license' %}" rel="license">License</a></li>
7474
<li><a href="{% url 'donate' %}" rel="payment" title="Support phpMyAdmin by donating money!">Donate</a></li>
75-
<li><a href="{% url 'search' %}" title="Search for phpMyAdmin related questions">Search</a></li>
7675
<li><a href="{% url 'about-website' %}" title="Information about website">About</a></li>
7776
<li class="logo"><a href="https://google.com/+phpmyadmin"><i class="fa fa-google-plus-square"></i></a></li>
7877
<li class="logo"><a href="https://twitter.com/phpmya"><i class="fa fa-twitter-square"></i></a></li>

pmaweb/templates/search.html

Lines changed: 0 additions & 29 deletions
This file was deleted.

pmaweb/urls.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,6 @@
221221
),
222222
name='donate'
223223
),
224-
url(
225-
r'^search/$',
226-
PMAView.as_view(
227-
template_name='search.html',
228-
title='Search',
229-
),
230-
name='search'
231-
),
232224
url(
233225
r'^about-website/$',
234226
PMAView.as_view(
@@ -471,6 +463,13 @@
471463
permanent=True,
472464
)
473465
),
466+
url(
467+
r'^search/$',
468+
RedirectView.as_view(
469+
pattern_name='home',
470+
permanent=True,
471+
)
472+
),
474473
url(
475474
r'^home_page/sitemap\.xml$',
476475
RedirectView.as_view(

pmaweb/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'stats': 'team',
3838
'sitemap': 'home',
3939
'gophp5': 'home',
40+
'search': 'home',
4041

4142
# Alive pages
4243
'15-years': '15-years',
@@ -52,7 +53,6 @@
5253
'index': 'home',
5354
'license': 'license',
5455
'news': 'news',
55-
'search': 'search',
5656
'sponsors': 'sponsors',
5757
'support': 'support',
5858
'team': 'team',

0 commit comments

Comments
 (0)