Rewrote 'we' word a little, rewrote mail order to use SQL_INSERTID() instead of anoth...
[mailer.git] / inc / extensions-functions.php
index acd01be780c418c1a35bcf3d581f8a5c5d84a0e5..93e1fdf84a88628df20810492439f7cb7656fab7 100644 (file)
@@ -125,7 +125,7 @@ function loadExtension ($ext_name, $ext_mode, $ext_ver = '0.0.0', $isDryRun = fa
                loadLanguageFile($ext_name);
        } // END - if
 
-       // Do we have cache?
+       // Is there cache?
        if (isExtensionFunctionFileReadable($ext_name)) {
                // Not yet loaded?
                if ((($GLOBALS['cache_array']['extension']['ext_func'][$ext_name] == 'Y') || (!isset($GLOBALS['cache_array']['extension']['ext_func'][$ext_name]))) && (!isExtensionLibraryLoaded($ext_name))) {
@@ -474,7 +474,7 @@ function doExtensionSqls ($ext_id, $load_mode) {
        // Debug message
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'SQLs::count=' . countSqls());
 
-       // Do we have entries?
+       // Are there entries?
        if (isSqlsValid()) {
                // Run SQL commands...
                runFilterChain('run_sqls');
@@ -529,7 +529,7 @@ function isExtensionInstalled ($ext_name) {
                // Look in database
                $ext_id = getExtensionId($ext_name);
 
-               // Do we have a record?
+               // Is there a record?
                $isInstalled = ($ext_id > 0);
 
                // Log debug message
@@ -793,9 +793,9 @@ function addExtensionVerboseSqlTable ($title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVA
        // Init variables
        $OUT = '';
 
-       // Do we have queries?
+       // Is there queries?
        if (isVerboseSqlEnabled()) {
-               // Do we have entries?
+               // Are there entries?
                if (countExtensionSqls() > 0) {
                        // Init counter
                        $idx = 0;
@@ -883,7 +883,7 @@ function getExtensionId ($ext_name) {
        // Init id number
        $data['ext_id'] = '0';
 
-       // Do we have cache?
+       // Is there cache?
        if (isset($GLOBALS['cache_array']['extension']['ext_id'][$ext_name])) {
                // Load from cache
                $data['ext_id'] = $GLOBALS['cache_array']['extension']['ext_id'][$ext_name];
@@ -914,7 +914,7 @@ function getExtensionId ($ext_name) {
 
 // Determines whether the given extension name is valid
 function isExtensionNameValid ($ext_name) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['ext_name_valid'][$ext_name])) {
                // Generate include file name
                $INC = sprintf("inc/extensions/ext-%s.php", $ext_name);
@@ -1655,7 +1655,7 @@ function FILTER_INIT_EXTENSIONS () {
        // Init notification pool
        initIncludePool('notify');
 
-       // Do we have some entries?
+       // Are there some entries?
        if (isset($GLOBALS['cache_array']['extension']['ext_name'])) {
                // Load all found extensions if found
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'CACHE - START!');
@@ -1746,7 +1746,7 @@ function removeExtensionFromArray () {
 
 // "Getter" for 'extension has a CSS file' (with same name, of course)
 function getExtensionHasCss () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][getCurrentExtensionName()][getCurrentTheme()])) {
                // Construct FQFN for check
                $FQFN = sprintf("%stheme/%s/css/%s.css",
@@ -1765,7 +1765,7 @@ function getExtensionHasCss () {
 
 // Checks whether the given extension has a language file
 function ifExtensionHasLanguageFile ($ext_name) {
-       // Do we have cache?
+       // Is there cache?
        if (isset($GLOBALS['cache_array']['extension']['ext_lang'][$ext_name])) {
                // Count cache hits
                incrementStatsEntry('cache_hits');
@@ -2112,7 +2112,7 @@ function isExtensionProductive ($ext_name = '') {
        } // END - if
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - ENTERED!');
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$ext_name])) {
                // Load extension only if not yet loaded
                if (!isset($GLOBALS['ext_productive'][$ext_name])) {