Replaced raw number with sqlLimit reference
authorAlexander Ebert <ebert@woltlab.com>
Mon, 19 Dec 2011 12:25:08 +0000 (13:25 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 19 Dec 2011 12:25:08 +0000 (13:25 +0100)
wcfsetup/install/files/lib/data/package/PackageAction.class.php

index 284e788ad1e7301bb143e7953a40a68bd0823556..ffebd224fec89ef774b5d5a6842f7880abee8d82 100644 (file)
@@ -47,7 +47,7 @@ class PackageAction extends AbstractDatabaseObjectAction {
        public function getPluginList() {
                $pluginList = Package::getPluginList();
                $pluginList->sqlLimit = 20;
-               $pluginList->sqlOffset = (($this->parameters['activePage'] - 1) * 20);
+               $pluginList->sqlOffset = (($this->parameters['activePage'] - 1) * $pluginList->sqlLimit);
                $pluginList->readObjects();
                
                WCF::getTPL()->assign(array(