Explorar o código

! Another bit of gif => png

emanuele %!s(int64=12) %!d(string=hai) anos
pai
achega
c6a9434b56
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Sources/ManageSmileys.php

+ 2 - 2
Sources/ManageSmileys.php

@@ -1565,9 +1565,9 @@ function EditMessageIcons()
 			$_GET['icon'] = (int) $_GET['icon'];
 
 			// Do some preperation with the data... like check the icon exists *somewhere*
-			if (strpos($_POST['icon_filename'], '.gif') !== false)
+			if (strpos($_POST['icon_filename'], '.png') !== false)
 				$_POST['icon_filename'] = substr($_POST['icon_filename'], 0, -4);
-			if (!file_exists($settings['default_theme_dir'] . '/images/post/' . $_POST['icon_filename'] . '.gif'))
+			if (!file_exists($settings['default_theme_dir'] . '/images/post/' . $_POST['icon_filename'] . '.png'))
 				fatal_lang_error('icon_not_found');
 			// There is a 16 character limit on message icons...
 			elseif (strlen($_POST['icon_filename']) > 16)