Skip to content
Snippets Groups Projects
Commit e6b20840 authored by mikee2's avatar mikee2 Committed by GitHub
Browse files

Update Segment.php

parent c82ee862
No related branches found
No related tags found
No related merge requests found
......@@ -170,8 +170,8 @@ class Segment implements IteratorAggregate, Countable
{
global $langs;
$patterns=array( '/\[%M\]/','/\[%F\]/','/\[%Y\]/' );
$values=array( $langs->trans(date('M')), $langs->trans(date('F')), date('Y') );
$patterns=array( '__CURRENTDAY__','__CURRENTDAYTEXT__','__CURRENTMONTHSHORT__','__CURRENTMONTH__','__CURRENTYEAR__' );
$values=array( date('j'), $langs->trans(date('l')), $langs->trans(date('M')), $langs->trans(date('F')), date('Y') );
$text=preg_replace($patterns, $values, $text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment