Last active
May 19, 2018 11:00
-
-
Save gartes/863bde9174abff1ca2043f002d45ab05 to your computer and use it in GitHub Desktop.
Тест методов
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * /libraries/cms/version/version.php | |
| * 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); | |
| // echo '<pre>';print_r( $mediaVersion );echo'</pre>';die('<br/>'.__FILE__.' -line:'.__LINE__.'<br/>'); | |
| // Save modified params | |
| // JLibraryHelper::saveParams('joomla', $params); | |
| } | |
| return $this; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment