diff options
author | mistic100 <mistic@piwigo.org> | 2013-10-19 11:04:11 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-10-19 11:04:11 +0000 |
commit | 2f08283864615990a47ef8b3995ab88402eda478 (patch) | |
tree | 6720eff124c37c877910cc25296958ebc1015cb9 /admin/group_list.php | |
parent | 139ffe3712b8c9a9ea4cd731d3fdb509463867dc (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 'admin/group_list.php')
-rw-r--r-- | admin/group_list.php | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/admin/group_list.php b/admin/group_list.php index 390107613..77049b9fa 100644 --- a/admin/group_list.php +++ b/admin/group_list.php @@ -72,10 +72,7 @@ INSERT INTO '.GROUPS_TABLE.' ;'; pwg_query($query); - array_push( - $page['infos'], - sprintf(l10n('group "%s" added'), $_POST['groupname']) - ); + $page['infos'][] = l10n('group "%s" added', $_POST['groupname']); } } @@ -153,10 +150,7 @@ if (isset($_POST['submit']) and isset($_POST['selectAction']) and isset($_POST[' ;'; pwg_query($query); - array_push( - $page['infos'], - sprintf(l10n('group "%s" deleted'), $groupname) - ); + $page['infos'][] = l10n('group "%s" deleted', $groupname); } } @@ -236,10 +230,8 @@ SELECT COUNT(*) } mass_inserts(USER_GROUP_TABLE, array('user_id','group_id'), $usr_grp); mass_inserts(GROUP_ACCESS_TABLE, array('group_id','cat_id'), $grp_access); - array_push( - $page['infos'], - sprintf(l10n('group "%s" added'), $_POST['merge']) - ); + + $page['infos'][] = l10n('group "%s" added', $_POST['merge']); } // + @@ -313,10 +305,7 @@ SELECT COUNT(*) } mass_inserts(USER_GROUP_TABLE, array('user_id','group_id'), $usr_grp); - array_push( - $page['infos'], - sprintf(l10n('group "%s" added'), $_POST['duplicate_'.$group.'']) - ); + $page['infos'][] = l10n('group "%s" added', $_POST['duplicate_'.$group.'']); } } @@ -344,10 +333,7 @@ SELECT COUNT(*) ;'; pwg_query($query); - array_push( - $page['infos'], - sprintf(l10n('group "%s" updated'), $groupname) - ); + $page['infos'][] = l10n('group "%s" updated', $groupname); } } } |