Use new wrapper isPhpExtensionLoaded() instead of extension_loaded().
authorRoland Haeder <roland@mxchange.org>
Thu, 17 Apr 2014 21:33:51 +0000 (23:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 17 Apr 2014 21:33:51 +0000 (23:33 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/extensions/ext-user.php
inc/xml-functions.php

index 9608278..4798722 100644 (file)
@@ -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
index 51a5be2..2d806fd 100644 (file)
@@ -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