diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-06-19 19:38:51 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-06-19 19:38:51 +0200 |
commit | c26719a10de214a6ea1c352b13bdd52b34e5a070 (patch) | |
tree | 5a219d8ffddb3db17b73f25ccbaa054f02c53619 /lib/l10n.php | |
parent | e8e483d07943e7c4874ee6147e3910ee868ed14d (diff) | |
download | nextcloud-server-c26719a10de214a6ea1c352b13bdd52b34e5a070.tar.gz nextcloud-server-c26719a10de214a6ea1c352b13bdd52b34e5a070.zip |
Fixed documentation of OC_L10N
Diffstat (limited to 'lib/l10n.php')
-rw-r--r-- | lib/l10n.php | 8 |
1 files changed, 5 insertions, 3 deletions
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 ); |