strict-warning-2149287-1.patch 1.2 KB

12345678910111213141516171819202122
  1. diff --git a/views_rss_media.install b/views_rss_media.install
  2. index cfee050..e7a0cc7 100644
  3. --- a/views_rss_media.install
  4. +++ b/views_rss_media.install
  5. @@ -16,6 +16,8 @@ define('VIEWS_RSS_MEDIA_REQUIRED_BUILD', '7.x-2.x-dev-20120314');
  6. function views_rss_media_requirements($phase) {
  7. $requirements = array();
  8. $t = get_t();
  9. + $vrb_array = explode('-', VIEWS_RSS_BUILD);
  10. + $vrmrb_array = explode('-', VIEWS_RSS_MEDIA_REQUIRED_BUILD);
  11. if (!defined('VIEWS_RSS_BUILD')) {
  12. $requirements['views_rss_media'] = array(
  13. 'title' => $t('Views RSS: Media (MRSS) Elements'),
  14. @@ -26,7 +28,7 @@ function views_rss_media_requirements($phase) {
  15. 'value' => NULL,
  16. );
  17. }
  18. - elseif (array_pop(explode('-', VIEWS_RSS_BUILD)) < array_pop(explode('-', VIEWS_RSS_MEDIA_REQUIRED_BUILD))) {
  19. + elseif (array_pop($vrb_array) < array_pop($vrmrb_array)) {
  20. $requirements['views_rss_media'] = array(
  21. 'title' => $t('Views RSS: Media (MRSS) Elements'),
  22. 'description' => $t('Your current build of <a href="@views_rss_url">Views RSS</a> module (!views_rss_build) is too old for this version of <em>Views RSS: Media (MRSS) Elements</em> module to work properly. Minimum version required is <strong>!views_rss_required</strong>. Please upgrade.', array(