]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-them.php
Fix for 'No resource given' message
[mailer.git] / inc / loader / load_cache-them.php
index 689b4331cf3fd5bbfbdc81e4970c8dda825ccb94..ad4766dfbd67eeb7979ebc6f04f479e3967156f2 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -76,7 +77,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_in
        $GLOBALS['cache_instance']->init();
 
        // Load all themes and their data
-       if (getExtensionVersion('theme') >= '0.0.7') {
+       if (isExtensionInstalledAndNewer('theme', '0.0.7')) {
                $result = SQL_QUERY('SELECT id, theme_path, theme_active, theme_ver, theme_name FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id`', __FILE__, __LINE__);
        } else {
                $result = SQL_QUERY('SELECT id, theme_path, theme_active, theme_ver FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id`', __FILE__, __LINE__);