| @@ 258-266 (lines=9) @@ | ||
| 255 | * @param string $format |
|
| 256 | * @return string |
|
| 257 | */ |
|
| 258 | public function datesub($dateFormat = 'none', $format = 'S') |
|
| 259 | { |
|
| 260 | if ($dateFormat === 'none') { |
|
| 261 | $smartConfig = sf_getModuleConfig(); |
|
| 262 | $dateFormat = $smartConfig['dateformat']; |
|
| 263 | } |
|
| 264 | ||
| 265 | return formatTimestamp($this->getVar('datesub', $format), $dateFormat); |
|
| 266 | } |
|
| 267 | ||
| 268 | /** |
|
| 269 | * @return mixed |
|
| @@ 332-340 (lines=9) @@ | ||
| 329 | * @param string $format |
|
| 330 | * @return string |
|
| 331 | */ |
|
| 332 | public function datesub($dateFormat = 'none', $format = 'S') |
|
| 333 | { |
|
| 334 | if ($dateFormat === 'none') { |
|
| 335 | $smartModuleConfig = sf_getModuleConfig(); |
|
| 336 | $dateFormat = $smartModuleConfig['dateformat']; |
|
| 337 | } |
|
| 338 | ||
| 339 | return formatTimestamp($this->getVar('datesub', $format), $dateFormat); |
|
| 340 | } |
|
| 341 | ||
| 342 | /** |
|
| 343 | * @return mixed |
|