Fixed Plugin-Store integration
authorAlexander Ebert <ebert@woltlab.com>
Fri, 16 Dec 2016 15:42:17 +0000 (16:42 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 16 Dec 2016 15:42:23 +0000 (16:42 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/lib/data/package/PackageAction.class.php

index 22b6317de068bae593b9312cdaaf4a812038346a..477f3a4f152af0a8de5faea6f6241ced2524cdac 100644 (file)
@@ -1464,7 +1464,7 @@ WCF.ACP.PluginStore.PurchasedItems.Search = Class.extend({
                });
                
                var $button = $('<li><a class="button"><span class="icon icon16 fa-shopping-cart" /> <span>' + WCF.Language.get('wcf.acp.pluginStore.purchasedItems.button.search') + '</span></a></li>');
-               $button.prependTo($('.contentNavigation:eq(0) > nav:not(.pagination) > ul')).click($.proxy(this._click, this));
+               $button.prependTo($('.contentHeaderNavigation > ul')).click($.proxy(this._click, this));
        },
        
        /**
index f4bf63aa9bda87381b2603ebb2662699b56ea578..de5da03ec7519bf3a05c1b389149589bdad738e1 100644 (file)
@@ -112,7 +112,7 @@ class PackageAction extends AbstractDatabaseObjectAction {
                        case 200:
                                if (empty($response['products'])) {
                                        return [
-                                               'noResults' => WCF::getLanguage()->get('wcf.acp.pluginStore.purchasedItems.noResults')
+                                               'noResults' => WCF::getLanguage()->getDynamicVariable('wcf.acp.pluginStore.purchasedItems.noResults')
                                        ];
                                }
                                else {