X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=extern%2Furl.php;h=4b5ed69974eca8b3e4d2db1c72a90798874f0f1c;hb=ce945da59ff8a9adc2088275689a615945e3015e;hp=cafbf7ee9c1388f78437b27b40dcb053d12489c5;hpb=96d9784edbe083b434bdd8f3f192b39ad67389d9;p=civicrm-core.git diff --git a/extern/url.php b/extern/url.php index cafbf7ee9c..4b5ed69974 100644 --- a/extern/url.php +++ b/extern/url.php @@ -4,16 +4,12 @@ require_once 'CRM/Core/Config.php'; require_once 'CRM/Core/Error.php'; require_once 'CRM/Utils/Array.php'; -$config = CRM_Core_Config::singleton(); +CRM_Core_Config::singleton(); // To keep backward compatibility for URLs generated // by CiviCRM < 1.7, we check for the q variable as well. -if (isset($_GET['qid'])) { - $queue_id = $_GET['qid'] ?? NULL; -} -else { - $queue_id = $_GET['q'] ?? NULL; -} +$queue_id = $_GET['qid'] ?? $_GET['q'] ?? NULL; + $url_id = $_GET['u'] ?? NULL; if (!$url_id) {