aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-14 12:49:56 +0100
committerFyorl <gaelreth@gmail.com>2012-08-14 12:49:56 +0100
commit003f8b514bc1345b95859ced087f90fdf87b3b7a (patch)
tree3e75b12221cc8e913f589dbcddd8658951580ed3 /phpBB
parentb96c72c156b5fd207ef0b1d1b55df037df688976 (diff)
downloadforums-003f8b514bc1345b95859ced087f90fdf87b3b7a.tar
forums-003f8b514bc1345b95859ced087f90fdf87b3b7a.tar.gz
forums-003f8b514bc1345b95859ced087f90fdf87b3b7a.tar.bz2
forums-003f8b514bc1345b95859ced087f90fdf87b3b7a.tar.xz
forums-003f8b514bc1345b95859ced087f90fdf87b3b7a.zip
[feature/attach-dl] Renamed to phpbb_download_handle_forum_auth
PHPBB3-11042
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/download/file.php4
-rw-r--r--phpBB/includes/functions_download.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index d000fc49d2..94dbb9bb51 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -230,7 +230,7 @@ else if ($download_id)
{
if (!$attachment['in_message'])
{
- phpbb_download_check_forum_auth($db, $auth, $attachment['topic_id']);
+ phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
}
else
{
@@ -302,7 +302,7 @@ else
// sizeof($attachments) >= 1
if (!$attachment['in_message'])
{
- phpbb_download_check_forum_auth($db, $auth, $attachment['topic_id']);
+ phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
}
else
{
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index ac5e5ddd7e..ed2f598429 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -615,7 +615,7 @@ function phpbb_increment_downloads($db, $ids)
}
/**
-* Checks that the user has permission to download attachments from the forum
+* Handles authentication when downloading attachments from a post or topic
*
* @param dbal $db The database object
* @param phpbb_auth $auth The authentication object
@@ -623,7 +623,7 @@ function phpbb_increment_downloads($db, $ids)
*
* @return null
*/
-function phpbb_download_check_forum_auth($db, $auth, $topic_id)
+function phpbb_download_handle_forum_auth($db, $auth, $topic_id)
{
$sql = 'SELECT t.forum_id, f.forum_password, f.parent_id
FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f