Skip to content

Instantly share code, notes, and snippets.

@mikevanwinkle
Created October 2, 2014 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikevanwinkle/339504cbd2759f2c65fb to your computer and use it in GitHub Desktop.
Save mikevanwinkle/339504cbd2759f2c65fb to your computer and use it in GitHub Desktop.
<?php
// line 410 of modules/update/update.module
// See if the .info file is newer than the last time we checked for data,
// and if so, mark this project's data as needing to be re-fetched. Any
// time an admin upgrades their local installation, the .info file will
// be changed, so this is the only way we can be sure we're not showing
// bogus information right after they upgrade.
if ($project['info']['_info_file_ctime'] > $available[$key]['last_fetch']) {
$available[$key]['fetch_status'] = UPDATE_FETCH_PENDING;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment