Replaces left updateType references with isCritical
authorMatthias Schmidt <gravatronics@live.com>
Wed, 16 Jan 2013 21:06:29 +0000 (22:06 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 16 Jan 2013 21:06:29 +0000 (22:06 +0100)
wcfsetup/install/files/acp/templates/packageAutoUpdateList.tpl
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

index b03917c381dca095f8efda5e55cf642b5be49954..2585715b89fdcb7a8a03679ecdf958345230965c 100644 (file)
@@ -41,7 +41,7 @@
                <p class="info">{lang}wcf.acp.packageUpdate.noneAvailable{/lang}</p>
        {else}
                {foreach from=$availableUpdates item=availableUpdate}
-                       <article class="wcf-message wcf-messageDecor{if $availableUpdate.version.updateType == 'security'} wcf-messageRed{/if}"><!-- ToDo: Style! -->
+                       <article class="wcf-message wcf-messageDecor{if $availableUpdate.version.isCritical} wcf-messageRed{/if}"><!-- ToDo: Style! -->
                                <div>
                                        <hgroup class="wcf-subHeading">
                                                <h1>
index 3b5b1799bf0074fabda83affc218aac47068aa9e..ed661c08c8a974b57110d1d39e1cf43247a2461f 100644 (file)
@@ -541,7 +541,7 @@ class PackageUpdateDispatcher extends SingletonFactory {
                $conditions->add("package IN (SELECT DISTINCT package FROM wcf".WCF_N."_package)");
                
                $sql = "SELECT          pu.packageUpdateID, pu.packageUpdateServerID, pu.package,
-                                       puv.packageUpdateVersionID, puv.updateType, puv.packageDate, puv.filename, puv.packageVersion
+                                       puv.packageUpdateVersionID, puv.isCritical, puv.packageDate, puv.filename, puv.packageVersion
                        FROM            wcf".WCF_N."_package_update pu
                        LEFT JOIN       wcf".WCF_N."_package_update_version puv
                        ON              (puv.packageUpdateID = pu.packageUpdateID)
@@ -561,7 +561,7 @@ class PackageUpdateDispatcher extends SingletonFactory {
                                        // version data
                                        if (!isset($updates[$existingVersion['packageID']]['versions'][$row['packageVersion']])) {
                                                $updates[$existingVersion['packageID']]['versions'][$row['packageVersion']] = array(
-                                                       'updateType' => $row['updateType'],
+                                                       'isCritical' => $row['isCritical'],
                                                        'packageDate' => $row['packageDate'],
                                                        'packageVersion' => $row['packageVersion'],
                                                        'servers' => array()