- common.inc:

+ Made '$na' translatable on popular demand.

- node.module:
   + replaced a confusing configuration description, as suggested by
     Remco.

- statistics.module:
   + Added a 'most recent referers'-table sorted by timestamp.

- drupal.module:
   + Small update of the links.
3-00
Dries Buytaert 2001-07-03 19:09:51 +00:00
parent 712e38a852
commit 6a21940c76
2 changed files with 8 additions and 9 deletions

View File

@ -1,7 +1,5 @@
<?
$na = "<I>na</I>";
function conf_init() {
global $HTTP_HOST, $REQUEST_URI;
$file = strtolower(strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."));
@ -49,6 +47,10 @@ function message_access() {
return t("You are not authorized to access to this page.");
}
function message_na() {
return t("n/a");
}
function message_throttle() {
return t("You exceeded the submission rate exceeded. Please wait a few minutes and try again.");
}
@ -79,8 +81,7 @@ function check_input($text) {
}
function check_output($text, $nl2br = 0) {
global $na;
return ($text) ? ($nl2br ? nl2br(stripslashes($text)) : stripslashes($text)) : $na;
return ($text) ? ($nl2br ? nl2br(stripslashes($text)) : stripslashes($text)) : message_na();
}
function format_plural($count, $singular, $plural) {
@ -168,14 +169,12 @@ function format_username($username) {
}
function format_email($address) {
global $na;
return ($address) ? "<a href=\"mailto:$address\">$address</A>" : $na;
return ($address) ? "<a href=\"mailto:$address\">$address</A>" : message_na();
}
function format_url($address, $description = "") {
global $na;
$description = ($description) ? $description : $address;
return ($address) ? "<a href=\"$address\">". check_output($description) ."</a>" : $na;
return ($address) ? "<a href=\"$address\">". check_output($description) ."</a>" : message_na();
}
function format_tag($link, $text) {

View File

@ -16,7 +16,7 @@ function module_invoke($name, $hook, $argument = 0) {
return function_exists($function) ? $function($argument) : $argument;
}
// return an array of module names (includes lazy module loading):
// return array of module names (includes lazy module loading):
function module_list() {
static $list;