summaryrefslogtreecommitdiff
path: root/help_text.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-03-31 14:39:54 +0100
committerGreg Roach <fisharebest@gmail.com>2015-03-31 14:39:54 +0100
commitdfeee0a8cc44423210f397a87295fbfc8bef632e (patch)
tree4e4c1922c769752cb5918c5fa864bff4fb6c7f95 /help_text.php
parentecd213b922a26e41c6f167ba370ddf9e4c80862c (diff)
downloadwebtrees-dfeee0a8cc44423210f397a87295fbfc8bef632e.tar.gz
webtrees-dfeee0a8cc44423210f397a87295fbfc8bef632e.tar.bz2
webtrees-dfeee0a8cc44423210f397a87295fbfc8bef632e.zip
Remove global $DATE_FORMAT
Diffstat (limited to 'help_text.php')
-rw-r--r--help_text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/help_text.php b/help_text.php
index fe1bda984a..c9c97e5cfe 100644
--- a/help_text.php
+++ b/help_text.php
@@ -139,7 +139,7 @@ case 'DATE':
$date = strip_tags($date->display(false, null, false));
}
// These shortcuts work differently for different languages
- switch (preg_replace('/[^DMY]/', '', str_replace(array('J', 'F'), array('D', 'M'), strtoupper($DATE_FORMAT)))) {
+ switch (preg_replace('/[^DMY]/', '', str_replace(array('J', 'F'), array('D', 'M'), I18N::dateFormat()))) {
case 'YMD':
$example1 = '11/12/1913'; // Note: we ignore the DMY order if it doesn't make sense.
$example2 = '03/02/01';