Changeset 2662

Show
Ignore:
Timestamp:
05/07/08 15:55:31 (2 months ago)
Author:
Shadowhand
Message:

Follow up to r2658, thanks brettalton.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/system/helpers/date.php

    r2658 r2662  
    388388                        $difference = trim(implode('', $span), ','); 
    389389                } 
     390                elseif (is_int($difference)) 
     391                { 
     392                        // Single-value return 
     393                        $difference = $difference.($difference === 1 ? inflector::singular($output) : $output); 
     394                } 
    390395 
    391396                return $difference;