Get default value on config repository

This commit is contained in:
Joseph Cohen
2015-05-20 12:56:59 -05:00
parent 33f6bf167c
commit 10bcbc6169
3 changed files with 7 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ if (!function_exists('formatted_date')) {
*/
function formatted_date($date)
{
$dateFormat = Setting::get('date_format') ?: 'jS F Y';
$dateFormat = Setting::get('date_format', 'jS F Y');
return (new Date($date))->format($dateFormat);
}