/** * Force SSL if site is configured to and * the connection is not secure. * * @return void */ public function boot() { // Set the base link to use for profiles User::$linkBase = 'index.php?option=com_members&id={ID}'; // Set the picture resolver if ($this->app->has('component')) { $params = $this->app['component']->params('com_members'); $config = ['path' => PATH_APP . DS . 'site' . DS . 'members', 'pictureName' => 'profile.png', 'thumbnailName' => 'thumb.png', 'fallback' => $params->get('defaultpic', '/core/components/com_members/site/assets/img/profile.gif')]; User::$pictureResolvers[] = new File($config); $resolver = $params->get('picture'); // Build the class name $cls = 'Hubzero\\User\\Picture\\' . ucfirst($resolver); if (class_exists($cls)) { User::$pictureResolvers[] = new $cls($config); } } }