Browse Source

small change to the css and renamed a couple of attachments functions

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
0b0aa7c8f8
2 changed files with 9 additions and 10 deletions
  1. 6 6
      Sources/Attachments.php
  2. 3 4
      Themes/default/css/index.css

+ 6 - 6
Sources/Attachments.php

@@ -117,17 +117,17 @@ function automanage_attachments_create_directory($updir)
 {
 	global $modSettings, $initial_error, $context, $boarddir;
 
-	$tree = mama_get_directory_tree_elements($updir);
+	$tree = get_directory_tree_elements($updir);
 	$count = count($tree);
 
-	$directory = mama_init_dir($tree, $count);
+	$directory = attachments_init_dir($tree, $count);
 	if ($directory === false)
 	{
 		// Maybe it's just the folder name
-		$tree = mama_get_directory_tree_elements($boarddir . DIRECTORY_SEPARATOR . $updir);
+		$tree = get_directory_tree_elements($boarddir . DIRECTORY_SEPARATOR . $updir);
 		$count = count($tree);
 	
-		$directory = mama_init_dir($tree, $count);
+		$directory = attachments_init_dir($tree, $count);
 		if ($directory === false)
 			return false;
 	}
@@ -234,7 +234,7 @@ function automanage_attachments_by_space()
 		return false;
 }
 
-function mama_get_directory_tree_elements ($directory)
+function get_directory_tree_elements ($directory)
 {
 	/*
 		In Windows server both \ and / can be used as directory separators in paths
@@ -255,7 +255,7 @@ function mama_get_directory_tree_elements ($directory)
 	return $tree;
 }
 
-function mama_init_dir (&$tree, &$count)
+function attachments_init_dir (&$tree, &$count)
 {
 	$directory = '';
 	// If on Windows servers the first part of the path is the drive (e.g. "C:")

+ 3 - 4
Themes/default/css/index.css

@@ -2440,14 +2440,13 @@ ul.post_options li {
 	padding: 0;
 	padding: 6px;
 }
-#postAttachment dd {
+#postAttachment dd, #postAttachment2 dd {
 	margin: 4px 0 4px 12px;
+}
+#postAttachment dd {
 	width: 45%;
 	float: left;
 }
-#postAttachment2 dd {
-	margin: 4px 0 4px 12px;
-}
 #postAttachment dt, #postAttachment2 dt {
 	font-weight: bold;
 }