Skip to content

Commit

Permalink
Use core API instead of queue widget
Browse files Browse the repository at this point in the history
*At least* for migrating to a current version of Plupload or maybe
another uploader this appears to be a reasonable simplification.
  • Loading branch information
cmb69 committed May 9, 2017
1 parent e67bf7f commit c756b97
Show file tree
Hide file tree
Showing 57 changed files with 37 additions and 749 deletions.
19 changes: 1 addition & 18 deletions classes/Widget.php
Expand Up @@ -72,20 +72,6 @@ class Widget
*/
private $libFolder;

/**
* The image folder path.
*
* @var string
*/
private $imageFolder;

/**
* The language filepath.
*
* @var string
*/
private $languageFile;

/**
* The configuration of the plugin.
*
Expand All @@ -102,7 +88,7 @@ class Widget

public function __construct()
{
global $pth, $sl, $cf, $plugin_cf, $plugin_tx;
global $pth, $plugin_cf, $plugin_tx;

$this->type = isset($_GET['uploader_type'])
&& isset($pth['folder'][$_GET['uploader_type']])
Expand All @@ -127,9 +113,6 @@ public function __construct()
}
}
$this->libFolder = $pth['folder']['plugins'] . 'uploader/lib/';
$this->imageFolder = $pth['folder']['plugins'] . 'uploader/images/';
$language = (strlen($sl) == 2) ? $sl : $cf['language']['default'];
$this->languageFile = $this->libFolder . 'i18n/' . $language . '.js';
$this->config = $plugin_cf['uploader'];
$this->l10n = $plugin_tx['uploader'];
}
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/ar.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/az.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/bs.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/cs.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/cy.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/da.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/de.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/el.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/en.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/es.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/i18n/et.js

This file was deleted.

0 comments on commit c756b97

Please sign in to comment.