Skip to content
Extraits de code Groupes Projets
Valider 97974b06 rédigé par mattab's avatar mattab
Parcourir les fichiers

Merge remote-tracking branch 'origin/master'

parents 1ead4755 93325c83
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -736,7 +736,7 @@ abstract class Controller ...@@ -736,7 +736,7 @@ abstract class Controller
Piwik_ExitWithMessage($errorMessage, false, true); Piwik_ExitWithMessage($errorMessage, false, true);
} }
FrontController::getInstance()->dispatch(Piwik::getLoginPluginName(), false); echo FrontController::getInstance()->dispatch(Piwik::getLoginPluginName(), false);
exit; exit;
} }
......
...@@ -241,7 +241,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -241,7 +241,7 @@ class Controller extends \Piwik\Plugin\Controller
return $view->render(); return $view->render();
} }
public function getEvolutionGraph(array $columns = array(), $idGoal = false) public function getEvolutionGraph($fetch = false, array $columns = array(), $idGoal = false)
{ {
if (empty($columns)) { if (empty($columns)) {
$columns = Common::getRequestVar('columns'); $columns = Common::getRequestVar('columns');
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
namespace Piwik\Plugins\Installation; namespace Piwik\Plugins\Installation;
use Piwik\Common; use Piwik\Common;
use Piwik\FrontController;
use Piwik\Menu\MenuAdmin; use Piwik\Menu\MenuAdmin;
use Piwik\Piwik; use Piwik\Piwik;
use Piwik\Translate; use Piwik\Translate;
...@@ -66,7 +67,7 @@ class Installation extends \Piwik\Plugin ...@@ -66,7 +67,7 @@ class Installation extends \Piwik\Plugin
if (in_array($step, array_keys($controller->getInstallationSteps())) if (in_array($step, array_keys($controller->getInstallationSteps()))
|| $isActionWhiteListed || $isActionWhiteListed
) { ) {
$controller->$step($message); echo FrontController::getInstance()->dispatch('Installation', $step, array($message));
} else { } else {
Piwik::exitWithErrorMessage(Piwik::translate('Installation_NoConfigFound')); Piwik::exitWithErrorMessage(Piwik::translate('Installation_NoConfigFound'));
} }
......
...@@ -62,7 +62,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -62,7 +62,7 @@ class Controller extends \Piwik\Plugin\Controller
*/ */
function index() function index()
{ {
$this->login(); return $this->login();
} }
/** /**
...@@ -335,8 +335,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -335,8 +335,7 @@ class Controller extends \Piwik\Plugin\Controller
return; return;
} else { } else {
// show login page w/ error. this will keep the token in the URL // show login page w/ error. this will keep the token in the URL
$this->login($errorMessage); return $this->login($errorMessage);
return;
} }
} }
...@@ -372,7 +371,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -372,7 +371,7 @@ class Controller extends \Piwik\Plugin\Controller
*/ */
public function resetPasswordSuccess() public function resetPasswordSuccess()
{ {
$this->login($errorMessage = null, $infoMessage = Piwik::translate('Login_PasswordChanged')); return $this->login($errorMessage = null, $infoMessage = Piwik::translate('Login_PasswordChanged'));
} }
/** /**
......
...@@ -146,8 +146,6 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -146,8 +146,6 @@ class Controller extends \Piwik\Plugin\Controller
* Returns or echo's a report that shows all search keyword, website and campaign * Returns or echo's a report that shows all search keyword, website and campaign
* referrer information in one report. * referrer information in one report.
* *
* @param bool $fetch True if the report HTML should be returned. If false, the
* report is echo'd and nothing is returned.
* @return string The report HTML or nothing if $fetch is set to false. * @return string The report HTML or nothing if $fetch is set to false.
*/ */
public function getAll() public function getAll()
......
...@@ -29,7 +29,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -29,7 +29,7 @@ class Controller extends \Piwik\Plugin\Controller
// By default plot up to the last 30 days of visitors on the map, for low traffic sites // By default plot up to the last 30 days of visitors on the map, for low traffic sites
const REAL_TIME_WINDOW = 'last30'; const REAL_TIME_WINDOW = 'last30';
public function visitorMap($segmentOverride = false) public function visitorMap($fetch = false, $segmentOverride = false)
{ {
$this->checkUserCountryPluginEnabled(); $this->checkUserCountryPluginEnabled();
......
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