Plugin Directory

Changeset 613487


Ignore:
Timestamp:
10/17/2012 04:10:08 AM (13 years ago)
Author:
mobius5150
Message:

Fixed badly balanced brackets on sprintf statement in date formatter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • globalfeed/trunk/mb_globalfeed.php

    r612743 r613487  
    16011601           
    16021602            if ( in_array('url', $types) ) {
    1603                 $pattern = '/[^\'"](ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:\.\?+=&%@!\-\/]))?([^“�«»„])[^\'"]/u';
     1603                $pattern = '/[^\'"](ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:\.\?+=&%@!\-\/]))?([^“�«»„])[^\'"]/u';
    16041604                $text = implode(' ',preg_replace_callback( $pattern, array( &$this, '_replace_link_callback'), explode(' ', $text)));
    16051605            }
     
    17851785                if($day_diff < 4) return date('l', $ts);
    17861786                if($day_diff < 7 + (7 - date('w'))) return __('next week', 'mb_globalfeed');
    1787                 if(ceil($day_diff / 7) < 4) return sprintf(__('in %d weeks',ceil($day_diff / 7)));
     1787                if(ceil($day_diff / 7) < 4) return sprintf(__('in %d weeks', 'mb_globalfeed'), ceil($day_diff / 7));
    17881788                if(date('n', $ts) == date('n') + 1) return __('next month', 'mb_globalfeed');
    17891789                return date('F Y', $ts);
Note: See TracChangeset for help on using the changeset viewer.