Browse Source

Merge branch 'attachments' of https://github.com/norv/SMF into release-2.1

emanuele 12 years ago
parent
commit
a795eff031
3 changed files with 5 additions and 5 deletions
  1. 4 4
      Sources/ManageAttachments.php
  2. 1 1
      Sources/Post.php
  3. 0 0
      Sources/Subs-Attachments.php

+ 4 - 4
Sources/ManageAttachments.php

@@ -89,7 +89,7 @@ function ManageAttachmentSettings($return_config = false)
 {
 	global $txt, $modSettings, $scripturl, $context, $options, $sourcedir, $boarddir;
 
-	require_once($sourcedir . '/Attachments.php');
+	require_once($sourcedir . '/Subs-Attachments.php');
 
 	// Get the current attachment directory.
 	$modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
@@ -1939,7 +1939,7 @@ function ManageAttachmentPaths()
 				}
 
 				// OK, so let's try to create it then.
-				require_once($sourcedir . '/Attachments.php');
+				require_once($sourcedir . '/Subs-Attachments.php');
 				if (automanage_attachments_create_directory($path))
 					$_POST['current_dir'] = $modSettings['currentAttachmentUploadDir'];
 				else
@@ -2194,7 +2194,7 @@ function ManageAttachmentPaths()
 		// Or adding a new one?
 		if (!empty($_POST['new_base_dir']))
 		{
-			require_once($sourcedir . '/Attachments.php');
+			require_once($sourcedir . '/Subs-Attachments.php');
 			$_POST['new_base_dir'] = htmlspecialchars($_POST['new_base_dir'], ENT_QUOTES);
 
 			$current_dir = $modSettings['currentAttachmentUploadDir'];
@@ -2639,7 +2639,7 @@ function TransferAttachments()
 		// Where are they going?
 		if (!empty($_POST['auto']))
 		{
-			require_once($sourcedir . '/Attachments.php');
+			require_once($sourcedir . '/Subs-Attachments.php');
 
 			$modSettings['automanage_attachments'] = 1;
 			$modSettings['use_subdirectories_for_attachments'] = $_POST['auto'] == -1 ? 0 : 1;

+ 1 - 1
Sources/Post.php

@@ -1248,7 +1248,7 @@ function Post2()
 	$context['can_post_attachment'] = !empty($modSettings['attachmentEnable']) && $modSettings['attachmentEnable'] == 1 && (allowedTo('post_attachment') || ($modSettings['postmod_active'] && allowedTo('post_unapproved_attachments')));
 	if ($context['can_post_attachment'] && empty($_POST['from_qr']))
 	{
-		 require_once($sourcedir . '/Attachments.php');
+		 require_once($sourcedir . '/Subs-Attachments.php');
 		 processAttachments();
 	}
 

+ 0 - 0
Sources/Attachments.php → Sources/Subs-Attachments.php