Commit ba436301 authored by Kjartan's avatar Kjartan

- made default locale admin page the search page.

parent ff801dd1
......@@ -128,7 +128,7 @@ function locale_seek() {
session_register("locale_settings");
}
if ($op != 'Search' || is_array($edit)) {
if (is_array($edit)) {
if ($edit["status"]) {
switch ($edit["language"]) {
......@@ -216,7 +216,7 @@ function locale_admin() {
if (user_access("administer locales")) {
locale_admin_initialize();
print "<small>". locale_links(1) . locale_links(0) . la(t("search"), array("mod" => "locale", "op" => "Search")) ." | ". la(t("overview"), array("mod" => "locale", "op" => "overview")) ." | ". la(t("help"), array("mod" => "locale", "op" => "help")) ."</small><hr />\n";
print "<small>". locale_links(1) . locale_links(0) . la(t("search"), array("mod" => "locale", "op" => "search")) ." | ". la(t("overview"), array("mod" => "locale", "op" => "overview")) ." | ". la(t("help"), array("mod" => "locale", "op" => "help")) ."</small><hr />\n";
switch ($op) {
case "delete":
......@@ -229,6 +229,7 @@ function locale_admin() {
case "edit":
print locale_edit(check_query($id));
break;
case "search":
case "Search":
print locale_seek();
break;
......
......@@ -128,7 +128,7 @@ function locale_seek() {
session_register("locale_settings");
}
if ($op != 'Search' || is_array($edit)) {
if (is_array($edit)) {
if ($edit["status"]) {
switch ($edit["language"]) {
......@@ -216,7 +216,7 @@ function locale_admin() {
if (user_access("administer locales")) {
locale_admin_initialize();
print "<small>". locale_links(1) . locale_links(0) . la(t("search"), array("mod" => "locale", "op" => "Search")) ." | ". la(t("overview"), array("mod" => "locale", "op" => "overview")) ." | ". la(t("help"), array("mod" => "locale", "op" => "help")) ."</small><hr />\n";
print "<small>". locale_links(1) . locale_links(0) . la(t("search"), array("mod" => "locale", "op" => "search")) ." | ". la(t("overview"), array("mod" => "locale", "op" => "overview")) ." | ". la(t("help"), array("mod" => "locale", "op" => "help")) ."</small><hr />\n";
switch ($op) {
case "delete":
......@@ -229,6 +229,7 @@ function locale_admin() {
case "edit":
print locale_edit(check_query($id));
break;
case "search":
case "Search":
print locale_seek();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment