Indefero

Indefero Commit Details


Date:2012-04-26 11:24:06 (12 years 7 months ago)
Author:Simon Holywell
Branch:develop
Commit:23253fc40e3310f179be2a4996bb8578146cc7a4
Parents: d348c45c56d4ac8d0297c370d83dbce5419ed44a
Message:Fix the duplication of the date shortcut codes

Changes:

File differences

src/IDF/Views/Issue.php
474474
475475
476476
477
478
479
480
481
482
483
484
485
486477
478
487479
488480
489481
......
720712
721713
722714
723
724
725
726
727
728
729
730
731
732715
716
733717
734718
735719
......
11341118
11351119
11361120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
11371136
11381137
11391138
'page_title' => $title,
'preview' => $preview,
'issue' => new IDF_Issue(),
'date_today' => date('Y-m-d'),
'date_tomorrow' => date('Y-m-d', strtotime('tomorrow')),
'date_eow' => date('Y-m-d', strtotime('next friday')),
'date_eom' => date('Y-m-d', strtotime('last day of this month')),
'date_2_hours' => date('Y-m-d H:i', strtotime('+2 hours')),
'date_2_days' => date('Y-m-d', strtotime('+2 days')),
'date_1_week' => date('Y-m-d', strtotime('+1 week')),
'date_two_weeks' => date('Y-m-d', strtotime('+2 week')),
'date_one_month' => date('Y-m-d', strtotime('+1 month')),
),
self::getDateShortcuts(),
self::autoCompleteArrays($prj)
);
if ($api == true) return $params;
'previous_issue_id' => $previous_issue_id,
'next_issue_id' => $next_issue_id,
'related_issues' => $related_issues,
'date_today' => date('Y-m-d'),
'date_tomorrow' => date('Y-m-d', strtotime('tomorrow')),
'date_eow' => date('Y-m-d', strtotime('next friday')),
'date_eom' => date('Y-m-d', strtotime('last day of this month')),
'date_2_hours' => date('Y-m-d H:i', strtotime('+2 hours')),
'date_2_days' => date('Y-m-d', strtotime('+2 days')),
'date_1_week' => date('Y-m-d', strtotime('+1 week')),
'date_two_weeks' => date('Y-m-d', strtotime('+2 week')),
'date_one_month' => date('Y-m-d', strtotime('+1 month')),
),
self::getDateShortcuts(),
$arrays),
$request);
}
$auto['auto_relation_types'] = substr($auto['auto_relation_types'], 0, -2);
return $auto;
}
public static function getDateShortcuts()
{
return array(
'date_today' => date('Y-m-d'),
'date_tomorrow' => date('Y-m-d', strtotime('tomorrow')),
'date_eow' => date('Y-m-d', strtotime('next friday')),
'date_eom' => date('Y-m-d', strtotime('last day of this month')),
'date_2_hours' => date('Y-m-d H:i', strtotime('+2 hours')),
'date_2_days' => date('Y-m-d', strtotime('+2 days')),
'date_1_week' => date('Y-m-d', strtotime('+1 week')),
'date_two_weeks' => date('Y-m-d', strtotime('+2 week')),
'date_one_month' => date('Y-m-d', strtotime('+1 month')),
);
}
}
/**

Archive Download the corresponding diff file

Page rendered in 0.07708s using 13 queries.