diff --git a/components/pastebin.php b/components/pastebin.php index 6ac5006e63a740c462151fc43892a4440ac6c9a5..941260b68444422bc81307011f3359ca7745292a 100755 --- a/components/pastebin.php +++ b/components/pastebin.php @@ -70,7 +70,8 @@ require_once 'Text/Highlighter/Renderer.php'; require_once 'Text/Highlighter/Renderer/Html.php'; require_once '../lib/ArrayRenderer.php'; -PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_WARNING); +//yay php5.4 +(new PEAR)->setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_WARNING); // Grabbed from blog.lib.php // Returns a textual diff between two time stamps