Navigation Menu

Skip to content

Commit

Permalink
url class put back to old style.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Mar 13, 2016
1 parent b3e8abf commit 7d05ac5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload/system/library/url.php
Expand Up @@ -5,7 +5,7 @@ class Url {
private $rewrite = array();

public function __construct($server, $ssl = '') {
$this->base = $server;
$this->server = $server;
$this->ssl = $ssl;
}

Expand All @@ -15,9 +15,9 @@ public function addRewrite($rewrite) {

public function link($route, $args = '', $secure = false) {
if ($this->ssl && $secure) {
$url = 'https://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/.\\') . '/index.php?route=' . $route;
$url = $this->ssl . 'index.php?route=' . $route;
} else {
$url = 'http://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/.\\') . '/index.php?route=' . $route;
$url = $this->server . 'index.php?route=' . $route;
}

if ($args) {
Expand Down

0 comments on commit 7d05ac5

Please sign in to comment.