]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-support.php
More complete rewrite to use wrapper function isExtensionInstalledAndNewer(), some...
[mailer.git] / inc / modules / member / what-support.php
index e3539424dbb1620f2dac8fc30ebc18d7d5ce2dd1..253836a1ee91a81dd14e396dc587757e292a88a4 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 *
@@ -56,7 +57,7 @@ if ((!isFormSent()) || (!isPostRequestParameterSet(('qsummary')))) {
        loadTemplate('member_support_form', false, getUserDataArray());
 } else {
        // Load mail template based on your member's decision
-       if (getExtensionVersion('admins') >= '0.4.1') {
+       if (isExtensionInstalledAndNewer('admins', '0.4.1')) {
                $a_tpl = 'admin_support-' . postRequestParameter('qsummary');
        } else {
                $message_a = loadEmailTemplate('admin_support-' . postRequestParameter('qsummary'), array('text' => postRequestParameter('qdetails')), getMemberId());