Updating package update lists upon searching
authorAlexander Ebert <ebert@woltlab.com>
Mon, 29 Jul 2013 10:56:19 +0000 (12:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 29 Jul 2013 10:56:19 +0000 (12:56 +0200)
wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php

index f6a00163c4db33dca1103e1e6d2f7d758f593425..4912f3611b789ee36c0fe849ed3097ffab77ef73 100644 (file)
@@ -59,6 +59,8 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction {
         * @return      array
         */
        public function search() {
+               PackageUpdateDispatcher::getInstance()->refreshPackageDatabase();
+               
                $conditions = new PreparedStatementConditionBuilder();
                if (!empty($this->parameters['package'])) {
                        $conditions->add("package_update.package LIKE ?", array('%'.$this->parameters['package'].'%'));