Git commits in Moodle 2.2.x by Nathan Mares

commit 3ea975b6bad8a5a4f51c91c54139288ebe1891c9
Author: Nathan Mares <nathan@catalyst-au.net>
Date:   Tue, 17 Jul 2012 17:37:06 +0800
Tag:    v2.2.5

MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3

commit 20c116f9f753553c3a5badac8c4764d41461d4ff
Author: Nathan Mares <nathan@catalyst-au.net>
Date:   Tue, 17 Jul 2012 17:11:57 +0800
Tag:    v2.2.5

MDL-34368: Fix broken query in so tokens are correctly checked against the linked service