1
0
Fork 0

Merge branch 'matomo' into more-improvements

This commit is contained in:
Lukas Winkler 2018-02-10 18:02:21 +01:00
commit 2303cc894e
No known key found for this signature in database
GPG key ID: 94AFBE7C2656A5B5
13 changed files with 41 additions and 41 deletions

View file

@ -10,7 +10,7 @@ Try it, it's easy to setup! No database needed
## Setup ## 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` * `cd github-issues-mirror/src`
* `curl -s https://getcomposer.org/installer | php` * `curl -s https://getcomposer.org/installer | php`
* `php composer.phar install` * `php composer.phar install`

View file

@ -1,20 +1,20 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
/** /**
* Will be displayed in the UI. * Will be displayed in the UI.
*/ */
define('PROJECT_NAME', 'Piwik'); define('PROJECT_NAME', 'Matomo');
/** /**
* Emails will be sent to this address in case anything goes wrong during the import. * Emails will be sent to this address in case anything goes wrong during the import.
*/ */
define('PROJECT_EMAIL', 'developer@piwik.org'); define('PROJECT_EMAIL', 'developer@matomo.org');
/** /**
* You can create a new application on the application settings page: https://github.com/settings/applications/new . * You can create a new application on the application settings page: https://github.com/settings/applications/new .
@ -23,8 +23,8 @@ define('PROJECT_EMAIL', 'developer@piwik.org');
*/ */
define('GITHUB_CLIENT_ID', ''); define('GITHUB_CLIENT_ID', '');
define('GITHUB_CLIENT_SECRET', ''); define('GITHUB_CLIENT_SECRET', '');
define('GITHUB_ORGANIZATION', 'piwik'); define('GITHUB_ORGANIZATION', 'matomo-org');
define('GITHUB_REPOSITORY', 'piwik'); define('GITHUB_REPOSITORY', 'matomo');
define('NUMBER_OF_ISSUES_PER_PAGE', 100); define('NUMBER_OF_ISSUES_PER_PAGE', 100);
/** /**
@ -35,15 +35,15 @@ define('DEBUG_ENABLED', false);
/** /**
* Set list of file extensions that should be disallowed in links * Set list of file extensions that should be disallowed in links
* see https://github.com/piwik/github-issues-mirror/issues/5 * see https://github.com/matomo-org/github-issues-mirror/issues/5
*/ */
define('FORBIDDEN_EXTENSIONS', ['swf', 'js', 'html', 'htm']); define('FORBIDDEN_EXTENSIONS', ['swf', 'js', 'html', 'htm']);
/** /**
* If you want to enable piwik tracking enter the URL to your piwik instance and the ID of the website here * If you want to enable piwik tracking enter the URL to your piwik instance and the ID of the website here
*/ */
define('PIWIK_URL', false); define('MATOMO_URL', false);
define('PIWIK_ID', false); define('MATOMO_ID', false);
/** /**
* Number of pages to show before and after the current page in the pagination. e.g. default (5) on page 37: * Number of pages to show before and after the current page in the pagination. e.g. default (5) on page 37:
@ -54,4 +54,4 @@ define("PAGINATION_PADDING", 5);
/** /**
* used in sitemap (without trailing slash) * used in sitemap (without trailing slash)
*/ */
define("BASE_DOMAIN", "https://issues.piwik.org"); define("BASE_DOMAIN", "https://issues.matomo.org");

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* *
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
@ -40,9 +40,9 @@ class Markdown extends \Parsedown
/** /**
* <a href="http://issues.piwik.org/attachments/1199/swelen_dateslider.swf">swelen_dateslider.swf</a> * <a href="http://issues.matomo.org/attachments/1199/swelen_dateslider.swf">swelen_dateslider.swf</a>
* to * to
* <a href="http://issues.piwik.org/">swelen_dateslider.swf</a> * <a href="http://issues.matomo.org/">swelen_dateslider.swf</a>
* @param $html * @param $html
* @return string html * @return string html
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
@ -39,8 +39,8 @@ $container['view'] = function ($container) {
$view->getEnvironment()->addGlobal('projectName', PROJECT_NAME); $view->getEnvironment()->addGlobal('projectName', PROJECT_NAME);
$view->getEnvironment()->addGlobal('githubOrganization', GITHUB_ORGANIZATION); $view->getEnvironment()->addGlobal('githubOrganization', GITHUB_ORGANIZATION);
$view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY); $view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY);
$view->getEnvironment()->addGlobal('piwikURL', PIWIK_URL); $view->getEnvironment()->addGlobal('matomoURL', MATOMO_URL);
$view->getEnvironment()->addGlobal('piwikID', PIWIK_ID); $view->getEnvironment()->addGlobal('matomoID', MATOMO_ID);
return $view; return $view;
}; };

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -1,8 +1,8 @@
<?php <?php
/** /**
* Piwik - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link http://piwik.org * @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */

View file

@ -20,7 +20,7 @@
<div class="container" style="margin-bottom: 20px;"> <div class="container" style="margin-bottom: 20px;">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
Powered by <a target="_blank" href="https://github.com/piwik/github-issues-mirror">GitHub Issue Mirror</a> Powered by <a target="_blank" href="https://github.com/matomo-org/github-issues-mirror">GitHub Issue Mirror</a>
</div> </div>
<div class="col-md-6 text-right"> <div class="col-md-6 text-right">
<a href="https://piwik.org/privacy-policy/">Privacy Policy</a> <a href="https://piwik.org/privacy-policy/">Privacy Policy</a>
@ -28,17 +28,17 @@
</div> </div>
</div> </div>
{% if piwikURL and piwikID %} {% if matomoURL and matomoID %}
<!-- Piwik --> <!-- Matomo -->
<script type="text/javascript"> <script type="text/javascript">
var _paq = _paq || []; var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']); _paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
(function () { (function () {
var u = "{{ piwikURL }}"; var u = "{{ matomoURL }}";
_paq.push(['setTrackerUrl', u + 'piwik.php']); _paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '{{ piwikID }}']); _paq.push(['setSiteId', '{{ matomoID }}']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript'; g.type = 'text/javascript';
g.async = true; g.async = true;
@ -47,7 +47,7 @@
s.parentNode.insertBefore(g, s); s.parentNode.insertBefore(g, s);
})(); })();
</script> </script>
<!-- End Piwik Code --> <!-- End Matomo Code -->
{% endif %} {% endif %}
</body> </body>