/**
  * Check if the Profile Picture library is enabled
  *
  * @return bool
  */
 protected function isProfilePictureLibraryEnabled()
 {
     if (JLibraryHelper::isEnabled('profilepicture')) {
         return true;
     }
     return false;
 }
Example #2
0
 /**
  * Sets the media version which is used to append to Joomla core media files.
  *
  * @param   string  $mediaVersion  The media version.
  *
  * @return  JVersion  Instance of $this to allow chaining.
  *
  * @since   3.2
  */
 public function setMediaVersion($mediaVersion)
 {
     // Do not allow empty media versions
     if (!empty($mediaVersion)) {
         // Get library parameters
         $params = JLibraryHelper::getParams('joomla');
         $params->set('mediaversion', $mediaVersion);
         // Save modified params
         JLibraryHelper::saveParams('joomla', $params);
     }
     return $this;
 }
Example #3
0
 /**
  * Sets the media version which is used to append to Joomla core media files.
  *
  * @param   string  $mediaVersion  The media version.
  *
  * @return  JVersion  Instance of $this to allow chaining.
  *
  * @since   3.2
  */
 public function setMediaVersion($mediaVersion)
 {
     // Do not allow empty media versions
     if (!empty($mediaVersion)) {
         // Get the params ...
         $params = JLibraryHelper::getParams('joomla');
         // ... set the media version ...
         $params->set('mediaversion', $mediaVersion);
         // ... and save the modified params
         JLibraryHelper::saveParams('joomla', $params);
     }
     return $this;
 }