mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing usage of r() from core
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8252 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
30281d6c59
commit
8f61c666c2
3 changed files with 4 additions and 4 deletions
|
@ -202,7 +202,7 @@ class ApiShell extends Shell {
|
||||||
|
|
||||||
if (strpos($method, '__') === false && $method[0] != '_') {
|
if (strpos($method, '__') === false && $method[0] != '_') {
|
||||||
$parsed[$method] = array(
|
$parsed[$method] = array(
|
||||||
'comment' => r(array('/*', '*/', '*'), '', trim($result[1][$key])),
|
'comment' => str_replace(array('/*', '*/', '*'), '', trim($result[1][$key])),
|
||||||
'method' => $method,
|
'method' => $method,
|
||||||
'parameters' => trim($result[3][$key])
|
'parameters' => trim($result[3][$key])
|
||||||
);
|
);
|
||||||
|
|
|
@ -488,8 +488,8 @@ class Shell extends Object {
|
||||||
*/
|
*/
|
||||||
function shortPath($file) {
|
function shortPath($file) {
|
||||||
$shortPath = str_replace(ROOT, null, $file);
|
$shortPath = str_replace(ROOT, null, $file);
|
||||||
$shortPath = str_replace('..'.DS, '', $shortPath);
|
$shortPath = str_replace('..' . DS, '', $shortPath);
|
||||||
return r(DS.DS, DS, $shortPath);
|
return str_replace(DS . DS, DS, $shortPath);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Checks for Configure::read('Routing.admin') and forces user to input it if not enabled
|
* Checks for Configure::read('Routing.admin') and forces user to input it if not enabled
|
||||||
|
|
|
@ -481,7 +481,7 @@ class TimeHelper extends AppHelper {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function wasWithinLast($timeInterval, $dateString, $userOffset = null) {
|
function wasWithinLast($timeInterval, $dateString, $userOffset = null) {
|
||||||
$tmp = r(' ', '', $timeInterval);
|
$tmp = str_replace(' ', '', $timeInterval);
|
||||||
if (is_numeric($tmp)) {
|
if (is_numeric($tmp)) {
|
||||||
$timeInterval = $tmp . ' ' . __('days', true);
|
$timeInterval = $tmp . ' ' . __('days', true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue