From c9cf562de2cb982622d259484894bf0824fb1888 Mon Sep 17 00:00:00 2001 From: Imran Hussain <imranh@sucs.org> Date: Thu, 24 Apr 2014 20:30:01 +0000 Subject: [PATCH] Fixed a php bug related to pastebin --- components/pastebin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/pastebin.php b/components/pastebin.php index 6ac5006..941260b 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 -- GitLab