Commit 681dfc4a authored by Dries's avatar Dries

- Bugfix: solve problem with locales being "disabled". Reported by Jerritt,

  fixed by Marco.
parent be5f1d2e
......@@ -115,6 +115,9 @@ function locale_init() {
function t($string, $args = 0) {
global $languages;
$string = ($languages && function_exists("locale") ? locale($string) : $string);
if (!$args) {
return $string;
}
......
......@@ -34,7 +34,7 @@ function block_admin_display() {
$result = db_query("SELECT * FROM blocks ORDER BY module");
// Generate output:
$output .= "<form action=\"". drupal_url(array("mod" => "block"), "admin") ." method=\"post\">\n";
$output .= "<form action=\"". drupal_url(array("mod" => "block"), "admin") ."\" method=\"post\">\n";
$output .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n";
$output .= " <tr><th>block</th><th>module</th><th>status</th><th>weight</th><th>region</th><th>path</th></tr>\n";
......
......@@ -34,7 +34,7 @@ function block_admin_display() {
$result = db_query("SELECT * FROM blocks ORDER BY module");
// Generate output:
$output .= "<form action=\"". drupal_url(array("mod" => "block"), "admin") ." method=\"post\">\n";
$output .= "<form action=\"". drupal_url(array("mod" => "block"), "admin") ."\" method=\"post\">\n";
$output .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n";
$output .= " <tr><th>block</th><th>module</th><th>status</th><th>weight</th><th>region</th><th>path</th></tr>\n";
......
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