Skip to content

Commit

Permalink
fix translation key
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Sep 22, 2013
1 parent e9c40c6 commit be865ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/CorePluginsAdmin/Controller.php
Expand Up @@ -48,7 +48,7 @@ private function createUpdateOrInstallView($template, $nonceName)
$view->plugin = array('name' => $pluginName);

if (!Nonce::verifyNonce('CorePluginsAdmin.' . $nonceName, $nonce)) {
$view->errorMessage = Piwik_Translate('ExceptionNonceMismatch');
$view->errorMessage = Piwik_Translate('General_ExceptionNonceMismatch');
return $view;
}

Expand Down Expand Up @@ -272,7 +272,7 @@ public function activate($redirectAfter = true)
}

if (!Nonce::verifyNonce('CorePluginsAdmin.activatePlugin', $nonce)) {
throw new \Exception(Piwik_Translate('ExceptionNonceMismatch'));
throw new \Exception(Piwik_Translate('General_ExceptionNonceMismatch'));
}

Nonce::discardNonce('CorePluginsAdmin.activatePlugin');
Expand Down

0 comments on commit be865ff

Please sign in to comment.