From 6e48b0ff207706a6759b97314ee6d4d3e2b0b263 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Jan 2015 21:59:04 +0100 Subject: [PATCH] Added fail-safe mechanism for list of purchased products --- com.woltlab.wcf/package.xml | 2 +- .../install/files/acp/templates/pluginStorePurchasedItems.tpl | 4 ++++ .../lib/acp/page/PluginStorePurchasedItemsPage.class.php | 4 ++++ wcfsetup/install/lang/de.xml | 2 ++ wcfsetup/install/lang/en.xml | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 9cc76f323e..40451e23e6 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -6,7 +6,7 @@ 1 2.1.0 Beta 3 - 2015-01-13 + 2015-01-07 diff --git a/wcfsetup/install/files/acp/templates/pluginStorePurchasedItems.tpl b/wcfsetup/install/files/acp/templates/pluginStorePurchasedItems.tpl index 289d0945cc..f68cf7f709 100644 --- a/wcfsetup/install/files/acp/templates/pluginStorePurchasedItems.tpl +++ b/wcfsetup/install/files/acp/templates/pluginStorePurchasedItems.tpl @@ -36,6 +36,8 @@

{lang}wcf.acp.pluginStore.purchasedItems.updateServer.missing{/lang}

{else if $updateServers[$wcfMajorRelease]->isDisabled}

{lang}wcf.acp.pluginStore.purchasedItems.updateServer.disabled{/lang}

+ {else if $updateServers[$wcfMajorRelease]->lastUpdateTime == 0} +

{lang}wcf.acp.pluginStore.purchasedItems.updateServer.requireUpdate{/lang}

{/if}
@@ -63,6 +65,8 @@ {else if $product[status] == 'upToDate'} + {else if $product[status] == 'requireUpdate'} + {else} {/if} diff --git a/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php b/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php index 81847633e7..a310df4eee 100644 --- a/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php @@ -116,6 +116,10 @@ class PluginStorePurchasedItemsPage extends AbstractPage { $this->productData[$wcfMajorRelease][$packageUpdateID]['status'] = 'upToDate'; } } + + if (isset($this->updateServers[$wcfMajorRelease]) && $this->updateServers[$wcfMajorRelease]->lastUpdateTime == 0) { + $this->productData[$wcfMajorRelease][$packageUpdateID]['status'] = 'requireUpdate'; + } } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 768abc1a68..18315ad8a4 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1265,12 +1265,14 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + hinzufügen.
Die Adresse des Servers lautet: „http://store.woltlab.com/{$wcfMajorRelease}/“]]>
+ diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index d93a56ca23..4822b470dc 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1267,9 +1267,11 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + add it.
The server address is: “http://store.woltlab.com/{$wcfMajorRelease}/”]]>
+ -- 2.20.1