@@ 326-334 (lines=9) @@ | ||
323 | * @param string $format |
|
324 | * @return string |
|
325 | */ |
|
326 | public function datesub($dateFormat = 'none', $format = 'S') |
|
327 | { |
|
328 | if ('none' === $dateFormat) { |
|
329 | $smartModuleConfig = Smartfaq\Utility::getModuleConfig(); |
|
330 | $dateFormat = $smartModuleConfig['dateformat']; |
|
331 | } |
|
332 | ||
333 | return formatTimestamp($this->getVar('datesub', $format), $dateFormat); |
|
334 | } |
|
335 | ||
336 | /** |
|
337 | * @return mixed |
@@ 241-249 (lines=9) @@ | ||
238 | * @param string $format |
|
239 | * @return string |
|
240 | */ |
|
241 | public function datesub($dateFormat = 'none', $format = 'S') |
|
242 | { |
|
243 | if ('none' === $dateFormat) { |
|
244 | $smartConfig = Smartfaq\Utility::getModuleConfig(); |
|
245 | $dateFormat = $smartConfig['dateformat']; |
|
246 | } |
|
247 | ||
248 | return formatTimestamp($this->getVar('datesub', $format), $dateFormat); |
|
249 | } |
|
250 | ||
251 | /** |
|
252 | * @return mixed |