aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_forums.php
diff options
context:
space:
mode:
authorJim Wigginton <terrafrost@phpbb.com>2009-01-27 19:16:29 +0000
committerJim Wigginton <terrafrost@phpbb.com>2009-01-27 19:16:29 +0000
commit06a47f8d8bfec14d63c84ca812fc3cdefa5a7874 (patch)
tree76e99c29103e66311f29b584fa786a619e4c7533 /phpBB/includes/acp/acp_forums.php
parentd8263b86bbd0ed217c7e65a169fd6ff3c9a6a111 (diff)
downloadforums-06a47f8d8bfec14d63c84ca812fc3cdefa5a7874.tar
forums-06a47f8d8bfec14d63c84ca812fc3cdefa5a7874.tar.gz
forums-06a47f8d8bfec14d63c84ca812fc3cdefa5a7874.tar.bz2
forums-06a47f8d8bfec14d63c84ca812fc3cdefa5a7874.tar.xz
forums-06a47f8d8bfec14d63c84ca812fc3cdefa5a7874.zip
Fixed bug #39005 - check forum_image whether it exists
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9309 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r--phpBB/includes/acp/acp_forums.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index 6095fdd48b..f6c879ee93 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -888,7 +888,7 @@ class acp_forums
*/
function update_forum_data(&$forum_data)
{
- global $db, $user, $cache;
+ global $db, $user, $cache, $phpbb_root_path;
$errors = array();
@@ -926,6 +926,11 @@ class acp_forums
array('lang' => 'FORUM_TOPICS_PAGE', 'value' => $forum_data['forum_topics_per_page'], 'column_type' => 'TINT:0'),
);
+ if (!file_exists($phpbb_root_path . $forum_data['forum_image']))
+ {
+ $errors[] = $user->lang['FORUM_IMAGE_NO_EXIST'];
+ }
+
validate_range($range_test_ary, $errors);
// Set forum flags