Skip to content

Commit

Permalink
fixed issue with links not being generated for assets without public …
Browse files Browse the repository at this point in the history
…facing urls
  • Loading branch information
nfourtythree committed Sep 30, 2016
1 parent a24c4a4 commit 1931bff
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 230 deletions.
10 changes: 9 additions & 1 deletion releases.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[
{
"version": "1.0.3",
"downloadUrl": "https://github.com/nfourtythree/SecureAssetDownload/archive/1.0.2.zip",
"date": "2016-07-27T11:05:00.111Z",
"notes": [
"[Fixed] Issue with links not generating for assets with public urls turned off"
]
},
{
"version": "1.0.2",
"downloadUrl": "https://github.com/nfourtythree/SecureAssetDownload/archive/1.0.2.zip",
Expand All @@ -13,7 +21,7 @@
"date": "2016-07-27T10:57:00.111Z",
"notes": [
"[Fixed] Serving from subfolders on local sources",
"[Added] Releases JSON"
"[Added] Releases JSON"
]
},
{
Expand Down
110 changes: 55 additions & 55 deletions secureassetdownload/SecureAssetDownloadPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,59 @@

class SecureAssetDownloadPlugin extends BasePlugin
{
function getName()
{
return 'Secure Asset Download';
}

function getVersion()
{
return '1.0.2';
}

function getDeveloper()
{
return 'nfourtythree';
}

function getDeveloperUrl()
{
return 'http://n43.me';
}

public function getDocumentationUrl()
{
return 'https://github.com/nfourtythree/SecureAssetDownload/blob/master/README.md';
}

public function getReleaseFeedUrl()
{
return 'https://raw.githubusercontent.com/nfourtythree/SecureAssetDownload/master/releases.json';
}

public function hasCpSection()
{
return false;
}

protected function defineSettings()
{
return array(
'encryptionKey' => array(AttributeType::String, 'default' => "My Super Secret Key"),
);
}

public function getSettingsHtml()
{
return craft()->templates->render('secureassetdownload/_settings', array(
'settings' => $this->getSettings()
));
}

public function registerSiteRoutes()
{
return array(
'secureAssetDownload/(?P<crypt>.+)' => array('action' => 'secureAssetDownload/index'),
);
}
function getName()
{
return 'Secure Asset Download';
}

function getVersion()
{
return '1.0.3';
}

function getDeveloper()
{
return 'nfourtythree';
}

function getDeveloperUrl()
{
return 'http://n43.me';
}

public function getDocumentationUrl()
{
return 'https://github.com/nfourtythree/SecureAssetDownload/blob/master/README.md';
}

public function getReleaseFeedUrl()
{
return 'https://raw.githubusercontent.com/nfourtythree/SecureAssetDownload/master/releases.json';
}

public function hasCpSection()
{
return false;
}

protected function defineSettings()
{
return array(
'encryptionKey' => array(AttributeType::String, 'default' => "My Super Secret Key"),
);
}

public function getSettingsHtml()
{
return craft()->templates->render('secureassetdownload/_settings', array(
'settings' => $this->getSettings()
));
}

public function registerSiteRoutes()
{
return array(
'secureAssetDownload/(?P<crypt>.+)' => array('action' => 'secureAssetDownload/index'),
);
}
}
Loading

0 comments on commit 1931bff

Please sign in to comment.