Development

#1817 (sfBrowserDetectPlugin: Typo in getInstance() Method)

You must first sign up to be able to contribute.

Ticket #1817 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

sfBrowserDetectPlugin: Typo in getInstance() Method

Reported by: Markus.Staab Assigned to: Simone.Carletti
Priority: minor Milestone:
Component: plugins Version: 1.0.0
Keywords: sfBrowserDetectPlugin Cc:
Qualification:

Description

since #4154 there is a new method getInstance():

public static function getInstance()
  {
    static $sfBrowserDetect;
    
    if( !isset($sfThumbnailCache) )
    {
      // Get instance
  	  $className = sfConfig::get('app_sf_browser_detect_class');
  	  $sfBrowserDetect = new $className();	
    }
    return $sfBrowserDetect;
  }

there is a little typo, it has to be

    if( !isset($sfBrowserDetect) )

Change History

06/26/07 21:26:55 changed by Markus.Staab

  • milestone set to 1.0.6.

07/02/07 19:51:33 changed by fabien

  • milestone deleted.

Please, don't add milestones... especially for plugins

08/02/07 15:21:25 changed by Simone.Carletti

  • owner changed from Jonathan.Todd to Simone.Carletti.

08/02/07 15:21:44 changed by Simone.Carletti

  • status changed from new to closed.
  • resolution set to fixed.

in [4798]

08/02/07 15:22:53 changed by Simone.Carletti

  • milestone set to 1.0.7.

Added Milestone for tracking (the nearest minor release).

08/20/07 16:17:25 changed by fabien

  • milestone deleted.