Changeset 5000
- Timestamp:
- 06/25/2013 04:52:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/functions.php
r4995 r5000 153 153 // Finding the biggest chunk (if the chunk fits, break) 154 154 $count = floor( $since / $seconds ); 155 if ( 0 != =$count ) {155 if ( 0 != $count ) { 156 156 break; 157 157 } … … 165 165 166 166 // Set output var 167 $output = ( 1 == =$count ) ? '1 '. $chunks[$i][1] : $count . ' ' . $chunks[$i][2];167 $output = ( 1 == $count ) ? '1 '. $chunks[$i][1] : $count . ' ' . $chunks[$i][2]; 168 168 169 169 // Step two: the second chunk … … 174 174 175 175 // Add to output var 176 if ( 0 != =$count2 ) {177 $output .= ( 1 == =$count2 ) ? _x( ',', 'Separator in time since', 'bbpress' ) . ' 1 '. $name2 : _x( ',', 'Separator in time since', 'bbpress' ) . ' ' . $count2 . ' ' . $chunks[$i + 1][2];176 if ( 0 != $count2 ) { 177 $output .= ( 1 == $count2 ) ? _x( ',', 'Separator in time since', 'bbpress' ) . ' 1 '. $name2 : _x( ',', 'Separator in time since', 'bbpress' ) . ' ' . $count2 . ' ' . $chunks[$i + 1][2]; 178 178 } 179 179 } … … 187 187 188 188 // Append 'ago' to the end of time-since if not 'right now' 189 if ( $output != =$right_now_text ) {189 if ( $output != $right_now_text ) { 190 190 $output = sprintf( $ago_text, $output ); 191 191 }
Note: See TracChangeset
for help on using the changeset viewer.