From f22150b202264add48e0cbc6356d54e0730d5c4d Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 12 Jan 2011 20:28:08 +0000 Subject: [PATCH] Added check for existence of block image; Made language/en/mods/portal.php look nicer --- root/includes/acp/acp_portal.php | 2 ++ root/language/en/mods/portal.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/root/includes/acp/acp_portal.php b/root/includes/acp/acp_portal.php index fe869127..f235846e 100644 --- a/root/includes/acp/acp_portal.php +++ b/root/includes/acp/acp_portal.php @@ -221,6 +221,8 @@ class acp_portal 'module_image_height' => request_var('module_img_height', 0), 'module_group_ids' => $module_permission, ); + + check_file_src($sql_ary['module_image_src'], '', $module_id); $sql = 'UPDATE ' . PORTAL_MODULES_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . ' diff --git a/root/language/en/mods/portal.php b/root/language/en/mods/portal.php index d579aa46..c5cc7199 100644 --- a/root/language/en/mods/portal.php +++ b/root/language/en/mods/portal.php @@ -37,7 +37,7 @@ if (empty($lang) || !is_array($lang)) // Common $lang = array_merge($lang, array( 'PORTAL' => 'Portal', - 'VIEWING_PORTAL' => 'Portal page', + 'VIEWING_PORTAL' => 'Portal page', 'BACK' => 'Back', )); ?> \ No newline at end of file