r4297 renderError(): rename to renderErrorImage()
authorDenis Ovsienko <infrastation@yandex.ru>
Sun, 6 Mar 2011 22:08:43 +0000 (22:08 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sun, 6 Mar 2011 22:08:43 +0000 (22:08 +0000)
wwwroot/inc/render_image.php
wwwroot/index.php

index 186e536d5fa2c8152b30ca873cafdeab20e29739..d39261eff286b775cba12cc5b8501c6c9a3a7e84 100644 (file)
@@ -56,7 +56,7 @@ function dispatchImageRequest()
                        renderFilePreview (getBypassValue());
                break;
        default:
-               renderError();
+               renderErrorImage();
        }
 }
 
@@ -116,7 +116,7 @@ function HTTPDateToUnixTime ($string)
        return gmmktime ($hours, $minutes, $seconds, $month, $day, $year);
 }
 
-function renderError ()
+function renderErrorImage ()
 {
        header("Content-type: image/png");
        // "ERROR", 76x17, red on white
index 813f3676b4a1f2c1039ce29691c0d357b67527a8..baf41f9b455d7c82f5408dc55bd9099d00c4c76f 100644 (file)
@@ -75,7 +75,7 @@ try {
                catch (Exception $e)
                {
                        ob_clean();
-                       renderError();
+                       renderErrorImage();
                }
                break;
        case 'ajax' == $_REQUEST['module']: