Skip to content

Commit

Permalink
Fixed replacing the year
Browse files Browse the repository at this point in the history
  • Loading branch information
God Mod committed Sep 7, 2015
1 parent 4a3c9d3 commit bfb998c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions birthday_portal.class.php
Expand Up @@ -28,7 +28,7 @@ class birthday_portal extends portal_generic {
protected static $path = 'birthday';
protected static $data = array(
'name' => 'Birthdays',
'version' => '2.1.1',
'version' => '2.1.3',
'author' => 'WalleniuM',
'contact' => EQDKP_PROJECT_URL,
'description' => 'Shows the actual birthdays on that day',
Expand Down Expand Up @@ -57,7 +57,7 @@ public function output() {
$myBirthdays = $this->pdc->get('portal.module.birthday.'.$this->user->id,false,true);
$userTimeFormat = $this->user->style['date_notime_short'];
//Try to remove the year
$userTimeFormat = str_replace(array('.y', '.Y', '-y', '-Y', 'y-', 'Y-', '/y', '/Y', 'y/', 'Y/'), $userTimeFormat, $subject);
$userTimeFormat = str_ireplace(array('.y', 'y.', '-y', 'y-', '/y', 'y/'), '', $userTimeFormat);

if (!$myBirthdays){
// Load birthdays
Expand Down

0 comments on commit bfb998c

Please sign in to comment.