From bf7471e58f9195a353f87288ada38f088dfbcd42 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Tue, 9 Jan 2018 17:58:03 +0100 Subject: [PATCH 1/2] Piwik -> Matomo --- README.md | 2 +- src/config/config.example.php | 16 ++++++++-------- src/helpers/Filesystem.php | 4 ++-- src/helpers/GithubImporter.php | 4 ++-- src/helpers/Issue.php | 4 ++-- src/helpers/Mail.php | 4 ++-- src/helpers/Markdown.php | 8 ++++---- src/helpers/Page.php | 4 ++-- src/helpers/Twig.php | 4 ++-- src/public/index.php | 8 ++++---- src/routes/page.php | 4 ++-- src/tasks/import_github_issues.php | 4 ++-- src/templates/layout.twig | 12 ++++++------ 13 files changed, 39 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 35ff53b..cddd085 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Try it, it's easy to setup! No database needed ## Setup -* `git clone git@github.com:piwik/github-issues-mirror.git` +* `git clone git@github.com:matomo-org/github-issues-mirror.git` * `cd github-issues-mirror/src` * `curl -s https://getcomposer.org/installer | php` * `php composer.phar install` diff --git a/src/config/config.example.php b/src/config/config.example.php index 599a0d0..c78ac39 100644 --- a/src/config/config.example.php +++ b/src/config/config.example.php @@ -1,20 +1,20 @@ swelen_dateslider.swf + * swelen_dateslider.swf * to - * swelen_dateslider.swf + * swelen_dateslider.swf * @param $html * @return string html */ diff --git a/src/helpers/Page.php b/src/helpers/Page.php index 88efa53..963da21 100755 --- a/src/helpers/Page.php +++ b/src/helpers/Page.php @@ -1,8 +1,8 @@ getEnvironment()->addGlobal('projectName', PROJECT_NAME); $view->getEnvironment()->addGlobal('githubOrganization', GITHUB_ORGANIZATION); $view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY); - $view->getEnvironment()->addGlobal('piwikURL', PIWIK_URL); - $view->getEnvironment()->addGlobal('piwikID', PIWIK_ID); + $view->getEnvironment()->addGlobal('matomoURL', MATOMO_URL); + $view->getEnvironment()->addGlobal('matomoID', MATOMO_ID); return $view; }; diff --git a/src/routes/page.php b/src/routes/page.php index 05f9382..1b136fb 100644 --- a/src/routes/page.php +++ b/src/routes/page.php @@ -1,8 +1,8 @@
- Powered by GitHub Issue Mirror + Powered by GitHub Issue Mirror
-{% if piwikURL and piwikID %} - +{% if matomoURL and matomoID %} + - + {% endif %} From 37a30c046a0fba3c6253292f2b7e5f1081e7d765 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Sat, 10 Feb 2018 17:56:52 +0100 Subject: [PATCH 2/2] update repository name --- src/config/config.example.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.example.php b/src/config/config.example.php index c78ac39..7896031 100644 --- a/src/config/config.example.php +++ b/src/config/config.example.php @@ -24,7 +24,7 @@ define('PROJECT_EMAIL', 'developer@matomo.org'); define('GITHUB_CLIENT_ID', ''); define('GITHUB_CLIENT_SECRET', ''); define('GITHUB_ORGANIZATION', 'matomo-org'); -define('GITHUB_REPOSITORY', 'piwik'); +define('GITHUB_REPOSITORY', 'matomo'); define('NUMBER_OF_ISSUES_PER_PAGE', 100); /**