Added check for existence of block image;

Made language/en/mods/portal.php look nicer
This commit is contained in:
Marc Alexander
2011-01-12 20:28:08 +00:00
parent f4a363e3d0
commit f22150b202
2 changed files with 3 additions and 1 deletions

View File

@@ -222,6 +222,8 @@ class acp_portal
'module_group_ids' => $module_permission, 'module_group_ids' => $module_permission,
); );
check_file_src($sql_ary['module_image_src'], '', $module_id);
$sql = 'UPDATE ' . PORTAL_MODULES_TABLE . ' $sql = 'UPDATE ' . PORTAL_MODULES_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
WHERE module_id = ' . $module_id; WHERE module_id = ' . $module_id;

View File

@@ -37,7 +37,7 @@ if (empty($lang) || !is_array($lang))
// Common // Common
$lang = array_merge($lang, array( $lang = array_merge($lang, array(
'PORTAL' => 'Portal', 'PORTAL' => 'Portal',
'VIEWING_PORTAL' => 'Portal page', 'VIEWING_PORTAL' => 'Portal page',
'BACK' => 'Back', 'BACK' => 'Back',
)); ));
?> ?>