diff --git a/e107_handlers/redirection_class.php b/e107_handlers/redirection_class.php index 14bac243a..f626e5cc9 100644 --- a/e107_handlers/redirection_class.php +++ b/e107_handlers/redirection_class.php @@ -372,10 +372,13 @@ class redirection if(defset('e_DEBUG') === 'redirect') { $error = debug_backtrace(); - - e107::getLog()->addDebug("URL: ".$url."\nFile: ".$error[1]['file']."\nLine: ".$error[1]['line']."\nClass: ".$error[1]['class']."\nFunction: ".$error[1]['function']."\n\n"); - e107::getLog()->toFile('redirect.log',true); - echo "debug active"; + + $message = "URL: ".$url."\nFile: ".$error[1]['file']."\nLine: ".$error[1]['line']."\nClass: ".$error[1]['class']."\nFunction: ".$error[1]['function']."\n\n"; + e107::getLog()->addDebug($message, true); + echo "Debug active"; + print_a($message); + echo "Go to : ".$url.""; + e107::getLog()->toFile('redirect.log',true); return; } diff --git a/e107_plugins/download/handlers/download_class.php b/e107_plugins/download/handlers/download_class.php index 65aba581f..6ccb5d8c4 100644 --- a/e107_plugins/download/handlers/download_class.php +++ b/e107_plugins/download/handlers/download_class.php @@ -56,7 +56,7 @@ class download $this->qry['from'] = 0; // v2.x - if(varset($_GET['action'])) + if(!empty($_GET['action'])) { $this->qry['action'] = (string) $_GET['action']; $this->qry['view'] = varset($_GET['view']) ? intval($_GET['view']) : $this->qry['view']; @@ -64,6 +64,11 @@ class download $this->qry['order'] = vartrue($_GET['order']) && in_array("download_".$_GET['order'],$this->orderOptions) ? $_GET['order'] : $this->qry['order']; $this->qry['sort'] = (varset($_GET['sort']) == 'asc') ? "asc" : 'desc'; $this->qry['from'] = vartrue($_GET['from'],0); + + if($this->qry['action'] == 'error') + { + $this->qry['error'] = intval($this->qry['id']); + } } else // v1.x Legacy URL support. { @@ -84,9 +89,7 @@ class download } - - - // v1.x + // v1.x if(varset($_POST['view'])) { $this->qry['view'] = varset($_POST['view']) ? intval($_POST['view']) : 10; @@ -94,7 +97,7 @@ class download $this->qry['sort'] = (strtolower($_POST['sort']) == 'asc') ? "asc" : 'desc'; } - + } @@ -894,7 +897,7 @@ class download $errmsg = LAN_ERROR." ".$this->qry['error']; } - return $ns->tablerender(LAN_ERROR, $header. "