mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing unused function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5039 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d1d583f0cd
commit
6e4f66555d
1 changed files with 0 additions and 15 deletions
|
@ -325,21 +325,6 @@ class CakeScript extends Object {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function __addAdminRoute($name){
|
||||
$file = file_get_contents(CONFIGS.'core.php');
|
||||
if (preg_match('%([/\\t\\x20]*define\\(\'CAKE_ADMIN\',[\\t\\x20\'a-z]*\\);)%', $file, $match)) {
|
||||
$result = str_replace($match[0], 'define(\'CAKE_ADMIN\', \''.$name.'\');', $file);
|
||||
|
||||
if(file_put_contents(CONFIGS.'core.php', $result)){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in a new issue