Skip to content

Commit

Permalink
fix banned pages
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Sep 30, 2014
1 parent 81eba7d commit fb93381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ function plugin_init_fields() {
$pages_to_ban = array(
"bollorelogisticsticket/front/ticket.form.php"
);
if (isset($_SERVER['HTTP_REFERER'])) {
if (isset($_SERVER['REQUEST_URI'])) {
$add_javascript = true;
foreach ($pages_to_ban as $page) {
if (strpos($_SERVER['HTTP_REFERER'], $page) !== false) {
if (strpos($_SERVER['REQUEST_URI'], $page) !== false) {
$add_javascript = false;
break;
}
Expand Down

0 comments on commit fb93381

Please sign in to comment.