first commit
This commit is contained in:
13
_rejestracja/core/plugins/Smarty/modifier.dateMod.php
Normal file
13
_rejestracja/core/plugins/Smarty/modifier.dateMod.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @author mago
|
||||
*/
|
||||
|
||||
function smarty_modifier_dateMod($string, $format='d.m.Y') {
|
||||
$i = strtotime($string);
|
||||
if($i == 0) {
|
||||
return;
|
||||
}
|
||||
return date($format,$i);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user