aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-08-06 10:49:42 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-08-06 10:49:42 +0000
commit4c4dbba46daa9d066e9cfe4fa0b6f848b2e030ae (patch)
tree2f301defa82e969f3c22fe49a73960a8b26c3a8c /phpBB/includes
parent7693609d0cdf434950e74e109d483637c60e8acf (diff)
downloadforums-4c4dbba46daa9d066e9cfe4fa0b6f848b2e030ae.tar
forums-4c4dbba46daa9d066e9cfe4fa0b6f848b2e030ae.tar.gz
forums-4c4dbba46daa9d066e9cfe4fa0b6f848b2e030ae.tar.bz2
forums-4c4dbba46daa9d066e9cfe4fa0b6f848b2e030ae.tar.xz
forums-4c4dbba46daa9d066e9cfe4fa0b6f848b2e030ae.zip
Language changes, take them while they are hot.
#13295 git-svn-id: file:///svn/phpbb/trunk@8009 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_icons.php25
1 files changed, 22 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_icons.php b/phpBB/includes/acp/acp_icons.php
index f0a0ad1a89..813c8e0f14 100644
--- a/phpBB/includes/acp/acp_icons.php
+++ b/phpBB/includes/acp/acp_icons.php
@@ -323,6 +323,7 @@ class acp_icons
}
}
+ $icons_updated = 0;
foreach ($images as $image)
{
if (($mode == 'smilies' && ($image_emotion[$image] == '' || $image_code[$image] == '')) ||
@@ -387,25 +388,43 @@ class acp_icons
SET " . $db->sql_build_array('UPDATE', $img_sql) . "
WHERE {$fields}_id = " . $image_id[$image];
$db->sql_query($sql);
+ $icons_updated++;
}
else if ($action !== 'modify')
{
$sql = "INSERT INTO $table " . $db->sql_build_array('INSERT', $img_sql);
$db->sql_query($sql);
+ $icons_updated++;
}
+
}
}
$cache->destroy('_icons');
$cache->destroy('sql', $table);
-
+
+ $level = E_USER_NOTICE;
+ switch ($icons_updated)
+ {
+ case 0:
+ $suc_lang = "{$lang}_NONE";
+ $level = E_USER_WARNING;
+ break;
+
+ case 1:
+ $suc_lang = "{$lang}_ONE";
+ break;
+
+ default:
+ $suc_lang = $lang;
+ }
if ($action == 'modify')
{
- trigger_error($user->lang[$lang . '_EDITED'] . adm_back_link($this->u_action));
+ trigger_error($user->lang[$suc_lang . '_EDITED'] . adm_back_link($this->u_action), $level);
}
else
{
- trigger_error($user->lang[$lang . '_ADDED'] . adm_back_link($this->u_action));
+ trigger_error($user->lang[$suc_lang . '_ADDED'] . adm_back_link($this->u_action), $level);
}
break;