CloneSet135


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
32210.999class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13246
administrator/includes/application.php
23142
includes/application.php
Clone Instance
1
Line Count
32
Source Line
46
Source File
administrator/includes/application.php

        /**
        * Initialise the application.
        *
        * @access public
        * @param array An optional associative array of configuration settings.
        */
        function initialise($options=  array()) {

                $config=  &JFactory::getConfig();

                // if a language was specified it has priority
                // otherwise use user or default language settings
                if (empty($options['language']))
                {
                        $user=  & JFactory::getUser();
                        $lang=    $user->getParam('admin_language');

                        // Make sure that the user's language exists
                        if ($lang
                            &&       JLanguage::exists($lang)) {
                                $options['language']=  $lang;
                              }
                        else   {
                                $params=  JComponentHelper::getParams('com_languages');
                                $client=  &JApplicationHelper::getClientInfo($this->getClientId());
                                $options['language']=  $params->get($client->name ,$config->getValue('config.language','en-GB'));
                              }
                      }
                // One last check to make sure we have something
                if (! JLanguage::exists($options['language'])) {
                        $lang=  $config->getValue('config.language','en-GB');
                        if (JLanguage::exists($lang)) {
                                $options['language']=  $lang;
                              }
                        else   {
                                $options['language']=  'en-GB'; // as a last ditch fail to english
                              }
                      }
                parent::initialise($options);
              }


Clone Instance
2
Line Count
31
Source Line
42
Source File
includes/application.php

        /**
        * Initialise the application.
        *
        * @access public
        */
        function initialise($options=  array()) {

                $config= & JFactory::getConfig();
                // if a language was specified it has priority
                // otherwise use user or default language settings
                if (empty($options['language']))
                {
                        $user=  & JFactory::getUser();
                        $lang=    $user->getParam('language');

                        // Make sure that the user's language exists
                        if ($lang
                            &&       JLanguage::exists($lang)) {
                                $options['language']=  $lang;
                              }
                        else   {
                                $params=   JComponentHelper::getParams('com_languages');
                                $client=  &JApplicationHelper::getClientInfo($this->getClientId());
                                $options['language']=  $params->get($client->name ,$config->getValue('config.language','en-GB'));
                              }
                      }
                // One last check to make sure we have something
                if (! JLanguage::exists($options['language'])) {
                        $lang=  $config->getValue('config.language','en-GB');
                        if (JLanguage::exists($lang)) {
                                $options['language']=  $lang;
                              }
                        else   {
                                $options['language']=  'en-GB'; // as a last ditch fail to english
                              }
                      }
                parent::initialise($options);
              }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
        * Initialise the application.
        *
        * @access public
        * @param array An optional associative array of configuration settings.
        */
/**
        * Initialise the application.
        *
        * @access public
        */
function initialise($options=array()) {
  $config= &JFactory::getConfig();
  // if a language was specified it has priority
  // otherwise use user or default language settings
  if (empty($options['language'])) {
    $user= &JFactory::getUser();
    $lang=$user->getParam( [[#variable41d871c0]]);
    // Make sure that the user's language exists
    if ($lang
        && JLanguage::exists($lang)) {
      $options['language']=$lang;
    }
    else {
      $params=JComponentHelper::getParams('com_languages');
      $client= &JApplicationHelper::getClientInfo($this->getClientId());
      $options['language']=$params->get($client->name ,$config->getValue('config.language','en-GB'));
    }
  }
  // One last check to make sure we have something
  if (!JLanguage::exists($options['language'])) {
    $lang=$config->getValue('config.language','en-GB');
    if (JLanguage::exists($lang)) {
      $options['language']=$lang;
    }
    else {
      $options['language']='en-GB'; // as a last ditch fail to english
    }
  }
  parent::initialise($options);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#41d871c0]]
'admin_language' 
12[[#41d871c0]]
'language'