Commit 05389921 authored by Łukasz Gogołkiewicz's avatar Łukasz Gogołkiewicz
Browse files

const fix

parent 5bf7a589
......@@ -29,16 +29,6 @@ class Akismet {
*/
const PLUGIN_VERSION = '1.0';
/**
* Akismet name
*/
const AKISMET_NAME = 'Akismet';
/**
* Akismet version
*/
const AKISMET_VERSION = '3.1.7';
/**
* Default API config
* @var array
......
......@@ -19,6 +19,16 @@ namespace CreateAndUse\Akismet;
*/
class AkismetApi {
/**
* Akismet name
*/
const AKISMET_NAME = 'Akismet';
/**
* Akismet version
*/
const AKISMET_VERSION = '3.1.7';
/**
* @var array
*/
......@@ -92,7 +102,7 @@ class AkismetApi {
* @return string
*/
private function _buildUserAgent() {
$plugin = self::PLUGIN_NAME . '/' . self::PLUGIN_VERSION;
$plugin = Akismet::PLUGIN_NAME . '/' . AkismetApi::PLUGIN_VERSION;
$akismet = self::AKISMET_NAME . '/' . self::AKISMET_VERSION;
return $plugin . '|' . $akismet;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment