~catch-drupal/+junk/pressflow-content-cache-variable

« back to all changes in this revision

Viewing changes to modules/update/update.compare.inc

  • Committer: David Strauss
  • Date: 2010-06-18 17:01:06 UTC
  • mfrom: (82.1.2 merge-drupal-6.17)
  • Revision ID: david@fourkitchens.com-20100618170106-eveqf9sepqonszf9
Drupal 6.17 (via testing branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: update.compare.inc,v 1.8.2.8 2010/03/01 09:40:45 goba Exp $
 
2
// $Id: update.compare.inc,v 1.8.2.9 2010/03/05 09:10:49 goba Exp $
3
3
 
4
4
/**
5
5
 * @file
690
690
    'package',
691
691
    'project',
692
692
    'project status url',
693
 
    'version', 
 
693
    'version',
694
694
  );
695
 
  return array_intersect_key($info, drupal_map_assoc($whitelist));
 
695
  $whitelist = array_flip($whitelist);
 
696
  foreach ($info as $key => $value) {
 
697
    if (!isset($whitelist[$key])) {
 
698
      unset($info[$key]);
 
699
    }
 
700
  }
 
701
  return $info;
696
702
}