aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-10-19 11:04:11 +0000
committermistic100 <mistic@piwigo.org>2013-10-19 11:04:11 +0000
commit2f08283864615990a47ef8b3995ab88402eda478 (patch)
tree6720eff124c37c877910cc25296958ebc1015cb9 /include/functions.inc.php
parent139ffe3712b8c9a9ea4cd731d3fdb509463867dc (diff)
feature 2978: remove useless sprintf in the core
git-svn-id: http://piwigo.org/svn/trunk@25005 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 09d104cdc..6f2df2880 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -606,11 +606,11 @@ function time_since($original, $stop='minute', $format=null, $with_text=true, $w
{
if ($diff->invert)
{
- $print = sprintf(l10n('%s ago'), $print);
+ $print = l10n('%s ago', $print);
}
else
{
- $print = sprintf(l10n('%s in the future'), $print);
+ $print = l10n('%s in the future', $print);
}
}
@@ -1578,8 +1578,8 @@ function get_icon($date, $is_child_date = false)
if (!isset($cache['get_icon']['title']))
{
- $cache['get_icon']['title'] = sprintf(
- l10n('photos posted during the last %d days'),
+ $cache['get_icon']['title'] = l10n(
+ 'photos posted during the last %d days',
$user['recent_period']
);
}
@@ -1705,7 +1705,7 @@ function get_privacy_level_options()
{
$label .= ', ';
}
- $label .= l10n( sprintf('Level %d',$level) );
+ $label .= l10n( sprintf('Level %d', $level) );
}
$options[$level] = $label;
}