MDL-36943 Do not notify about already installed updates
authorDavid Mudrák <david@moodle.com>
Wed, 5 Dec 2012 22:47:54 +0000 (23:47 +0100)
committerDavid Mudrák <david@moodle.com>
Wed, 5 Dec 2012 22:47:54 +0000 (23:47 +0100)
commit5800832af86362a5454a58e61df9067504328a98
tree7066a415232b568ff4df7f6d0d4a550a3ebb01e7
parent99584654ceefba6dc4a63f36c1dafba946440697
MDL-36943 Do not notify about already installed updates

Before this patch, the available_update_checker::cron_notifications()
method accessed the availableupdates property. But for plugins, that property
basically contains the most recent version available. So we were missing
the check against the actual version installed.

The fix was simple - obtain available updates via the available_updates()
method that performs the check.
lib/pluginlib.php