Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2015-11-07 00:45:25 +0300
committersgiehl <stefan@piwik.org>2015-11-19 01:39:26 +0300
commit8933a13d0aecf6c349e49a00cc0e79a50e8700c3 (patch)
tree9198244ba0011b2fa700bb23af33197ef4053d2c
parentd9bbb09ac0b0076f57ca9fe20d313cb9f1f1814a (diff)
adjust used repo
-rw-r--r--composer.json20
-rw-r--r--composer.lock22
-rw-r--r--plugins/Referrers/SearchEngine.php2
-rw-r--r--plugins/Referrers/Social.php2
-rw-r--r--plugins/Referrers/Tasks.php14
5 files changed, 32 insertions, 28 deletions
diff --git a/composer.json b/composer.json
index 28b407ed5a..f6c0141296 100644
--- a/composer.json
+++ b/composer.json
@@ -54,8 +54,8 @@
"symfony/event-dispatcher": "~2.6.0",
"pear/pear_exception": "~1.0.0",
"piwik/referrer-spam-blacklist": "~1.0",
- "tecnickcom/tcpdf": "~6.0",
- "piwik/searchengine-and-social-definitions": "dev-master"
+ "piwik/searchengine-and-social-list": "~1.0",
+ "tecnickcom/tcpdf": "~6.0"
},
"require-dev": {
"aws/aws-sdk-php": "2.7.1",
@@ -91,20 +91,8 @@
"reference": "master"
}
}
- },
- {
- "type": "package",
- "package": {
- "name": "piwik/searchengine-and-social-definitions",
- "type": "library",
- "version": "master",
- "source": {
- "type": "git",
- "url": "https://github.com/sgiehl/searchengine-and-social-definitions",
- "reference": "master"
- }
- }
- } ],
+ }
+ ],
"scripts": {
"pre-update-cmd": [
"Piwik\\Composer\\ScriptHandler::cleanXhprof"
diff --git a/composer.lock b/composer.lock
index 1a5ba52b51..2a53020e14 100644
--- a/composer.lock
+++ b/composer.lock
@@ -959,15 +959,26 @@
"time": "2015-10-07 10:17:59"
},
{
- "name": "piwik/searchengine-and-social-definitions",
- "version": "master",
+ "name": "piwik/searchengine-and-social-list",
+ "version": "1.0",
"source": {
"type": "git",
- "url": "https://github.com/sgiehl/searchengine-and-social-definitions",
- "reference": "master"
+ "url": "https://github.com/piwik/searchengine-and-social-list.git",
+ "reference": "e2b97a1cd9ed2dde735de49f8ef9afc26b3df80b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/piwik/searchengine-and-social-list/zipball/e2b97a1cd9ed2dde735de49f8ef9afc26b3df80b",
+ "reference": "e2b97a1cd9ed2dde735de49f8ef9afc26b3df80b",
+ "shasum": ""
},
"type": "library",
- "time": "2015-10-31 15:36:36"
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Public Domain"
+ ],
+ "description": "Search engine and social network definitions used by Piwik",
+ "time": "2015-11-06 21:32:51"
},
{
"name": "psr/log",
@@ -2656,7 +2667,6 @@
"minimum-stability": "stable",
"stability-flags": {
"php-di/php-di": 10,
- "piwik/searchengine-and-social-definitions": 20,
"facebook/xhprof": 20
},
"prefer-stable": false,
diff --git a/plugins/Referrers/SearchEngine.php b/plugins/Referrers/SearchEngine.php
index df48d9663a..41542e1548 100644
--- a/plugins/Referrers/SearchEngine.php
+++ b/plugins/Referrers/SearchEngine.php
@@ -23,7 +23,7 @@ class SearchEngine extends Singleton
const OPTION_STORAGE_NAME = 'SearchEngineDefinitions';
/** @var string location of definition file (relative to PIWIK_INCLUDE_PATH) */
- const DEFINITION_FILE = '/vendor/piwik/searchengine-and-social-definitions/SearchEngines.yml';
+ const DEFINITION_FILE = '/vendor/piwik/searchengine-and-social-list/SearchEngines.yml';
protected $definitionList = null;
diff --git a/plugins/Referrers/Social.php b/plugins/Referrers/Social.php
index f554dc75d0..71badc3357 100644
--- a/plugins/Referrers/Social.php
+++ b/plugins/Referrers/Social.php
@@ -22,7 +22,7 @@ class Social extends Singleton
const OPTION_STORAGE_NAME = 'SocialDefinitions';
/** @var string location of definition file (relative to PIWIK_INCLUDE_PATH) */
- const DEFINITION_FILE = '/vendor/piwik/searchengine-and-social-definitions/Socials.yml';
+ const DEFINITION_FILE = '/vendor/piwik/searchengine-and-social-list/Socials.yml';
protected $definitionList = null;
diff --git a/plugins/Referrers/Tasks.php b/plugins/Referrers/Tasks.php
index 8dd3f96e5a..da9cad1321 100644
--- a/plugins/Referrers/Tasks.php
+++ b/plugins/Referrers/Tasks.php
@@ -23,26 +23,32 @@ class Tasks extends \Piwik\Plugin\Tasks
/**
* Update the search engine definitions
*
- * @see https://github.com/piwik/searchengine-and-social-definitions
+ * @see https://github.com/piwik/searchengine-and-social-list
*/
public function updateSearchEngines()
{
- $url = 'https://raw.githubusercontent.com/piwik/searchengine-and-social-definitions/master/SearchEngines.yml';
+ $url = 'https://raw.githubusercontent.com/piwik/searchengine-and-social-list/master/SearchEngines.yml';
$list = Http::sendHttpRequest($url, 30);
$searchEngines = SearchEngine::getInstance()->loadYmlData($list);
+ if (count($searchEngines) < 200) {
+ return;
+ }
Option::set(SearchEngine::OPTION_STORAGE_NAME, base64_encode(serialize($searchEngines)));
}
/**
* Update the social definitions
*
- * @see https://github.com/piwik/searchengine-and-social-definitions
+ * @see https://github.com/piwik/searchengine-and-social-list
*/
public function updateSocials()
{
- $url = 'https://raw.githubusercontent.com/piwik/searchengine-and-social-definitions/master/Socials.yml';
+ $url = 'https://raw.githubusercontent.com/piwik/searchengine-and-social-list/master/Socials.yml';
$list = Http::sendHttpRequest($url, 30);
$socials = Social::getInstance()->loadYmlData($list);
+ if (count($socials) < 50) {
+ return;
+ }
Option::set(Social::OPTION_STORAGE_NAME, base64_encode(serialize($socials)));
}
} \ No newline at end of file