Update Segment.php
This commit is contained in:
parent
c82ee862af
commit
e6b20840a3
@ -170,8 +170,8 @@ class Segment implements IteratorAggregate, Countable
|
|||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
$patterns=array( '/\[%M\]/','/\[%F\]/','/\[%Y\]/' );
|
$patterns=array( '__CURRENTDAY__','__CURRENTDAYTEXT__','__CURRENTMONTHSHORT__','__CURRENTMONTH__','__CURRENTYEAR__' );
|
||||||
$values=array( $langs->trans(date('M')), $langs->trans(date('F')), date('Y') );
|
$values=array( date('j'), $langs->trans(date('l')), $langs->trans(date('M')), $langs->trans(date('F')), date('Y') );
|
||||||
|
|
||||||
$text=preg_replace($patterns, $values, $text);
|
$text=preg_replace($patterns, $values, $text);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user