Browse Source

! some basic housekeeping in a few files, formating, spelling etc

Spuds 13 years ago
parent
commit
8381219f11
3 changed files with 6 additions and 5 deletions
  1. 1 0
      Sources/Profile-View.php
  2. 4 4
      Sources/Subs.php
  3. 1 1
      Themes/default/languages/Errors.english.php

+ 1 - 0
Sources/Profile-View.php

@@ -2129,6 +2129,7 @@ function viewWarning($memID)
 	);
 
 	// Create the list for viewing.
+	require_once($sourcedir . '/Subs-List.php');
 	createList($listOptions);
 
 	// Create some common text bits for the template.

+ 4 - 4
Sources/Subs.php

@@ -2974,7 +2974,7 @@ function setupThemeContext($forceload = false)
  * @param bool $in_use Set to true to account for current memory usage of the script
  * @return bool, true if we have at least the needed memory
  */
-function setMemoryLimit($needed, $in_use = false) 
+function setMemoryLimit($needed, $in_use = false)
 {
 	// everything in bytes
 	$memory_used = 0;
@@ -3004,9 +3004,9 @@ function setMemoryLimit($needed, $in_use = false)
  * @param string $val The byte string, like 256M or 1G
  * @return integer The string converted to a proper integer in bytes
  */
-function memoryReturnBytes($val) 
+function memoryReturnBytes($val)
 {
-	if (is_integer($val)) 
+	if (is_integer($val))
 		return $val;
 	
 	// Separate the number from the designator
@@ -3015,7 +3015,7 @@ function memoryReturnBytes($val)
 	$last = strtolower(substr($val, -1));
 	
 	// convert to bytes
-	switch ($last) 
+	switch ($last)
 	{
 		case 'g':
 			$num *= 1024;

+ 1 - 1
Themes/default/languages/Errors.english.php

@@ -34,7 +34,7 @@ $txt['not_enough_posts_karma'] = 'Sorry, you don\'t have enough posts to modify
 $txt['cant_change_own_karma'] = 'Sorry, you are not permitted to modify your own karma.';
 $txt['karma_wait_time'] = 'Sorry, you can\'t repeat a karma action without waiting %1$s %2$s.';
 $txt['feature_disabled'] = 'Sorry, this feature is disabled.';
-$txt['feature_no_exists'] = 'Sorry, this feature doesn\'t exists.';
+$txt['feature_no_exists'] = 'Sorry, this feature doesn\'t exist.';
 $txt['cant_access_upload_path'] = 'Cannot access attachments upload path!';
 $txt['file_too_big'] = 'Your file is too large. The maximum attachment size allowed is %1$d kB.';
 $txt['attach_timeout'] = 'Your attachment couldn\'t be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.<br /><br />Please consult your server administrator for more information.';