/** * 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; }
/** * 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; }