From: Roland Haeder Date: Thu, 17 Apr 2014 21:33:51 +0000 (+0200) Subject: Use new wrapper isPhpExtensionLoaded() instead of extension_loaded(). X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=9b016bdcfb1d242d5873c0a808b06359d3692660 Use new wrapper isPhpExtensionLoaded() instead of extension_loaded(). Signed-off-by: Roland Häder --- 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