Last active
March 22, 2019 10:56
-
-
Save joomdonation/f2e413026f6e25f3175464d6487876e8 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
<?php | |
class plgInstallerSample extends JPlugin | |
{ | |
public function onInstallerBeforePackageDownload(&$url, &$headers) | |
{ | |
$uri = JUri::getInstance($url); | |
$uri->setVar('blahblah', 'blahblah'); | |
$uri->setVar('pid', 'xx'); | |
$uri->setVar('token', 'xxxxxx-xxxxxx-xxxxxx'); | |
$url = $uri->toString(); | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment