mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing unused code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7796 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6624d41ecd
commit
a90ade78a9
1 changed files with 1 additions and 2 deletions
|
@ -94,7 +94,6 @@ class ClassRegistry {
|
|||
function &init($class, $type = null) {
|
||||
$_this =& ClassRegistry::getInstance();
|
||||
$id = $false = false;
|
||||
$table = $ds = $alias = $plugin = $options = null;
|
||||
$true = true;
|
||||
|
||||
if (!$type) {
|
||||
|
@ -116,8 +115,8 @@ class ClassRegistry {
|
|||
if (is_array($settings)) {
|
||||
$plugin = $pluginPath = null;
|
||||
$settings = array_merge($defaults, $settings);
|
||||
|
||||
$class = $settings['class'];
|
||||
|
||||
if (strpos($class, '.') !== false) {
|
||||
list($plugin, $class) = explode('.', $class);
|
||||
$pluginPath = $plugin . '.';
|
||||
|
|
Loading…
Reference in a new issue