Skip to content

Commit

Permalink
Update test.php
Browse files Browse the repository at this point in the history
Updated wrong URLs
  • Loading branch information
osworx authored Mar 16, 2022
1 parent a2c0f72 commit 70fb0cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upload/admin/controller/extension/module/test.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* @version $Id: test.php 2022-3-16 11:44Z mic $
* @version $Id: test.php 2022-3-16 12:37Z mic $
* @package Boilerplate for event in OpenCart 3.x
* @author mic - https://osworx.net
* @copyright 2022 OSWorX
Expand All @@ -9,7 +9,7 @@

class ControllerExtensionModuleTest extends Controller
{
public $_version = '1.0.1';
public $_version = '1.0.2';

private $_extension = 'module_test';
private $_route = 'extension/module/test';
Expand Down Expand Up @@ -140,7 +140,7 @@ public function index() {
}

// standard redirect (when form has no "apply button")
$this->response->redirect( $this->url->link( $this->_route, '&user_token=' . $this->session->data['user_token'], true ) );
$this->response->redirect( $this->url->link( 'extension/extension&type=module', '&user_token=' . $this->session->data['user_token'], true ) );
}

// set the documents title
Expand All @@ -166,7 +166,7 @@ public function index() {

// define the 2 action buttons, note: apply is done inside the template via javascript
$data['action'] = $this->url->link( $this->_route, 'user_token=' . $this->session->data['user_token'], true );
$data['cancel'] = $this->url->link( 'extension/extension/module', 'user_token=' . $this->session->data['user_token'], true );
$data['cancel'] = $this->url->link( 'extension/extension&type=module', 'user_token=' . $this->session->data['user_token'], true );

// add / define here further values we need in the template
$data['_route'] = $this->_route;
Expand Down

0 comments on commit 70fb0cc

Please sign in to comment.