diff --git a/cake/console/libs/api.php b/cake/console/libs/api.php index 95897c0c206..8d6c4078df3 100644 --- a/cake/console/libs/api.php +++ b/cake/console/libs/api.php @@ -202,7 +202,7 @@ function __parseClass($path) { if (strpos($method, '__') === false && $method[0] != '_') { $parsed[$method] = array( - 'comment' => r(array('/*', '*/', '*'), '', trim($result[1][$key])), + 'comment' => str_replace(array('/*', '*/', '*'), '', trim($result[1][$key])), 'method' => $method, 'parameters' => trim($result[3][$key]) ); diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index bac6c347ba0..99613bf2697 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -488,8 +488,8 @@ function _checkUnitTest() { */ function shortPath($file) { $shortPath = str_replace(ROOT, null, $file); - $shortPath = str_replace('..'.DS, '', $shortPath); - return r(DS.DS, DS, $shortPath); + $shortPath = str_replace('..' . DS, '', $shortPath); + return str_replace(DS . DS, DS, $shortPath); } /** * Checks for Configure::read('Routing.admin') and forces user to input it if not enabled diff --git a/cake/libs/view/helpers/time.php b/cake/libs/view/helpers/time.php index 066d97906b2..e2a8c723a55 100644 --- a/cake/libs/view/helpers/time.php +++ b/cake/libs/view/helpers/time.php @@ -481,7 +481,7 @@ function relativeTime($dateTime, $options = array()) { * @return bool */ function wasWithinLast($timeInterval, $dateString, $userOffset = null) { - $tmp = r(' ', '', $timeInterval); + $tmp = str_replace(' ', '', $timeInterval); if (is_numeric($tmp)) { $timeInterval = $tmp . ' ' . __('days', true); }