Skip to content
Extraits de code Groupes Projets
Valider e7973556 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

Merge pull request #9498 from piwik/9258

Make sure to forward xhprof and testmode to all archiving requests
parents 514e6c73 e8fd3387
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -969,14 +969,6 @@ class CronArchive ...@@ -969,14 +969,6 @@ class CronArchive
{ {
$url = $this->makeRequestUrl($url); $url = $this->makeRequestUrl($url);
if ($this->shouldStartProfiler) {
$url .= "&xhprof=2";
}
if ($this->testmode) {
$url .= "&testmode=1";
}
try { try {
$cliMulti = $this->makeCliMulti(); $cliMulti = $this->makeCliMulti();
$cliMulti->setAcceptInvalidSSLCertificate($this->acceptInvalidSSLCertificate); $cliMulti->setAcceptInvalidSSLCertificate($this->acceptInvalidSSLCertificate);
...@@ -1603,7 +1595,17 @@ class CronArchive ...@@ -1603,7 +1595,17 @@ class CronArchive
*/ */
private function makeRequestUrl($url) private function makeRequestUrl($url)
{ {
return $url . self::APPEND_TO_API_REQUEST; $url = $url . self::APPEND_TO_API_REQUEST;
if ($this->shouldStartProfiler) {
$url .= "&xhprof=2";
}
if ($this->testmode) {
$url .= "&testmode=1";
}
return $url;
} }
/** /**
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter