Skip to content

Commit 6151145

Browse files
committed
Update to 2.0.9-rc1
- Fixed: Removed modAction suppport - Changed: Removed standard build script (GPM build script is available)
1 parent 5c239b5 commit 6151145

File tree

7 files changed

+43
-49
lines changed

7 files changed

+43
-49
lines changed

_build/config.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@
33
"lowCaseName": "redirector",
44
"description": "Handles your site redirects.",
55
"author": "Shaun McCormick",
6-
"version": "2.0.8",
6+
"version": "2.0.9-rc1",
77
"package": {
8-
"actions": [
9-
{
10-
"id": 1,
11-
"controller": "index"
12-
}
13-
],
148
"menus": [
159
{
1610
"text": "redirector",
1711
"description": "redirector.menu_desc",
18-
"action": 1
12+
"action": "home",
13+
"parent": "components"
1914
}
2015
],
2116
"elements": {
@@ -45,7 +40,6 @@
4540
},
4641
"build": {
4742
"resolver": {
48-
"before": [],
4943
"after": [
5044
"resolve.tables.php",
5145
"resolve.dbchanges.php"

_build/gpm_resolvers/gpm.resolve.tables.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
*
77
* @package redirector
88
* @subpackage build
9+
*
10+
* @var mixed $object
11+
* @var modX $modx
12+
* @var array $options
913
*/
1014

1115
if ($object->xpdo) {
68.3 KB
Binary file not shown.

core/components/redirector/controllers/home.class.php

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
<?php
22

3-
if (!class_exists('RedirectorManagerController')) {
4-
require_once __DIR__ . '/index.class.php';
5-
}
3+
class RedirectorHomeManagerController extends modExtraManagerController {
4+
/**
5+
* @var Redirector $redirector
6+
*/
7+
public $redirector;
8+
9+
public function initialize() {
10+
$path = $this->modx->getOption('redirector.core_path', null, MODX_CORE_PATH . 'components/redirector/');
11+
$this->redirector = $this->modx->getService('redirector', 'model.redirector.Redirector', $path);
12+
13+
$this->addCss($this->redirector->config['cssUrl'].'mgr.css');
14+
$this->addJavascript($this->redirector->config['jsUrl'].'mgr/redirector.js');
15+
$this->addJavascript($this->redirector->config['jsUrl'].'mgr/combos.js');
16+
$this->addHtml('<script type="text/javascript">
17+
Ext.onReady(function() {
18+
Redi.config = '.$this->modx->toJSON($this->redirector->config).';
19+
Redi.config.connector_url = "'.$this->redirector->config['connectorUrl'].'";
20+
Redi.request = '.$this->modx->toJSON($_GET).';
21+
});
22+
</script>');
23+
return parent::initialize();
24+
}
25+
26+
public function getLanguageTopics() {
27+
return array('redirector:default');
28+
}
629

7-
class RedirectorHomeManagerController extends RedirectorManagerController {
830
public function getPageTitle() {
931
return $this->modx->lexicon('redirector');
1032
}

core/components/redirector/controllers/index.class.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

core/components/redirector/docs/changelog.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Changelog file for Redirector component.
22

3+
Redirector 2.0.9
4+
====================================
5+
- Fixed: Removed modAction suppport
6+
- Changed: Removed standard build script (GPM build script is available)
7+
38
Redirector 2.0.8
49
====================================
510
- Fixed: BlindSQL Injection
@@ -88,4 +93,4 @@ Redirector 1.0.0
8893
- Fixes to build script
8994
- Implement plugin, load pluginevents into build
9095
- Fixed bugs in redirects grid
91-
- Initial commit
96+
- Initial commit

core/components/redirector/model/redirector/mysql/modredirect.map.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
'version' => '1.0',
88
'table' => 'redirects',
99
'extends' => 'xPDOSimpleObject',
10+
'tableMeta' =>
11+
array (
12+
'engine' => 'MyISAM',
13+
),
1014
'fields' =>
1115
array (
1216
'pattern' => '',

0 commit comments

Comments
 (0)