From 9b016bdcfb1d242d5873c0a808b06359d3692660 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 17 Apr 2014 23:33:51 +0200 Subject: [PATCH] Use new wrapper isPhpExtensionLoaded() instead of extension_loaded(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/extensions/ext-user.php | 2 +- inc/xml-functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/extensions/ext-user.php b/inc/extensions/ext-user.php index 960827873c..4798722931 100644 --- a/inc/extensions/ext-user.php +++ b/inc/extensions/ext-user.php @@ -60,7 +60,7 @@ switch (getExtensionMode()) { case 'activate': // Do stuff when admin activates this extension // Is the required PHP extension 'recode' loaded? - if (!extension_loaded('recode')) { + if (!isPhpExtensionLoaded('recode')) { // Required extension not loaded enableExtensionReportingFailure(); } // END - if diff --git a/inc/xml-functions.php b/inc/xml-functions.php index 51a5be20fa..2d806fd7fd 100644 --- a/inc/xml-functions.php +++ b/inc/xml-functions.php @@ -129,7 +129,7 @@ function addXmlSpecialElements ($template) { // Parses the XML content function parseXmlData ($content) { // Is there recode? - if (!extension_loaded('recode')) { + if (!isPhpExtensionLoaded('recode')) { // No fallback ATM reportBug(__FUNCTION__, __LINE__, 'PHP extension recode is missing. Please install it.'); } // END - if -- 2.30.2