summaryrefslogtreecommitdiff
path: root/lib/plugins/plugin/classes/ap_download.class.php
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-11-29 16:06:43 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-11-29 16:06:43 +0100
commit38479cbba628ee76a92ff5f3c974cfa8e6ce9e61 (patch)
tree710a0bca9a6f0704903f295bf6237807685d53fa /lib/plugins/plugin/classes/ap_download.class.php
parent818f6d5179dd55f43e04269bc03e0afd5459c27e (diff)
downloadrpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.gz
rpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.bz2
some coding style improvements
- removed some dead/unused code - fixed phpdoc - added typing on methods
Diffstat (limited to 'lib/plugins/plugin/classes/ap_download.class.php')
-rw-r--r--lib/plugins/plugin/classes/ap_download.class.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/plugins/plugin/classes/ap_download.class.php b/lib/plugins/plugin/classes/ap_download.class.php
index 0eb567c80..3cc455867 100644
--- a/lib/plugins/plugin/classes/ap_download.class.php
+++ b/lib/plugins/plugin/classes/ap_download.class.php
@@ -7,7 +7,6 @@ class ap_download extends ap_manage {
* Initiate the plugin download
*/
function process() {
- global $lang;
global $INPUT;
$plugin_url = $INPUT->str('url');
@@ -45,7 +44,6 @@ class ap_download extends ap_manage {
* Process the downloaded file
*/
function download($url, $overwrite=false) {
- global $lang;
// check the url
$matches = array();
if (!preg_match("/[^\/]*$/", $url, $matches) || !$matches[0]) {
@@ -241,7 +239,7 @@ class ap_download extends ap_manage {
* if neither bz, gz or zip are recognized, tar is assumed.
*
* @author Andreas Gohr <andi@splitbrain.org>
- * @returns false if the file can't be read, otherwise an "extension"
+ * @returns boolean|string false if the file can't be read, otherwise an "extension"
*/
function guess_archive($file){
$fh = fopen($file,'rb');