From: Jakob Sack Date: Sun, 19 Jun 2011 17:38:51 +0000 (+0200) Subject: Fixed documentation of OC_L10N X-Git-Tag: v3.0~267^2~507 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c26719a10de214a6ea1c352b13bdd52b34e5a070;p=nextcloud-server.git Fixed documentation of OC_L10N --- diff --git a/lib/l10n.php b/lib/l10n.php index 4eae109cb52..2f72b971173 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -121,18 +121,20 @@ class OC_L10N{ * - date * - Creates a date * - l10n-field: date - * - params: timestamp (int) + * - params: timestamp (int/string) * - datetime * - Creates date and time * - l10n-field: datetime - * - params: timestamp (int) + * - params: timestamp (int/string) * - time * - Creates a time * - l10n-field: time - * - params: timestamp (int) + * - params: timestamp (int/string) */ public function l($type, $data){ switch($type){ + // If you add something don't forget to add it to $localizations + // at the top of the page case 'date': if( is_string( $data )) $data = strtotime( $data ); return date( $this->localizations['date'], $data );