Yii Framework Forum: Needless call to getRoutes() in CLogRouter - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Needless call to getRoutes() in CLogRouter Rate Topic: -----

#1 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 08 December 2008 - 02:47 PM

Just by accident i found this in CLogRouter when i studied the framework code:

        public function setRoutes($config)
        {
                $routes=$this->getRoutes();
                foreach($config as $c)
                {
                        if(isset($c['class']))
                                $this->_routeConfig[]=new CConfiguration($c);
                        else
                                throw new CException(Yii::t('yii','Log route configuration must have a "class" value.'));
                }
        }


$routes is never used?!
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 08 December 2008 - 03:10 PM

Thanks. Fixed.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users