diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-05 17:40:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-05 17:40:29 +0000 |
| commit | 5d51864bac06ba548eaf7222649e32ec5772d7ce (patch) | |
| tree | 41344cc0645e6e8b91967b0f7f13297bc8fdf284 /help_text.php | |
| parent | 1b00dc40f047cc48fc07766c3e8205941fbd5078 (diff) | |
| download | webtrees-5d51864bac06ba548eaf7222649e32ec5772d7ce.tar.gz webtrees-5d51864bac06ba548eaf7222649e32ec5772d7ce.tar.bz2 webtrees-5d51864bac06ba548eaf7222649e32ec5772d7ce.zip | |
Replace globals with tree properties
Diffstat (limited to 'help_text.php')
| -rw-r--r-- | help_text.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/help_text.php b/help_text.php index af4ebb2daa..2de2ce6de8 100644 --- a/help_text.php +++ b/help_text.php @@ -60,7 +60,6 @@ case 'CAUS': case 'DATE': $title = WT_Gedcom_Tag::getLabel('DATE'); - $CALENDAR_FORMAT = null; // Don't perform conversions here - it will confuse the examples! $dates = array( '1900' =>new Date('1900'), 'JAN 1900' =>new Date('JAN 1900'), @@ -137,7 +136,7 @@ case 'DATE': ); foreach ($dates as &$date) { - $date = strip_tags($date->Display()); + $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)))) { |
