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
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-12 03:13:23 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-12 03:13:23 +0400
commitc866f47f5e7b9f872db969324786f0b28e7750d7 (patch)
treec75df7c8260eefb46f4981d1fee8f8937ec233e8 /core
parent97402e918b0af08396d80a33458d8b421332dff7 (diff)
Do not mention archive.php in the sourcecode, instead mention `./console core:archive` command
Diffstat (limited to 'core')
-rw-r--r--core/Archive.php3
-rw-r--r--core/ArchiveProcessor/Rules.php4
-rw-r--r--core/CronArchive.php12
-rw-r--r--core/FrontController.php2
-rw-r--r--core/Http.php2
-rw-r--r--core/Log.php2
-rw-r--r--core/Period/Range.php2
-rw-r--r--core/SettingsPiwik.php2
-rw-r--r--core/SettingsServer.php2
-rw-r--r--core/TaskScheduler.php2
-rw-r--r--core/Url.php2
11 files changed, 17 insertions, 18 deletions
diff --git a/core/Archive.php b/core/Archive.php
index 431b5e818f..99be7fd503 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -100,8 +100,7 @@ use Piwik\Period\Factory;
*
* <a name="footnote-1"></a>
* [1]: The archiving process will not be launched if browser archiving is disabled
- * and the current request came from a browser (and not the **archive.php** cron
- * script).
+ * and the current request came from a browser.
*
*
* @api
diff --git a/core/ArchiveProcessor/Rules.php b/core/ArchiveProcessor/Rules.php
index 45250b0d23..fa19fa82be 100644
--- a/core/ArchiveProcessor/Rules.php
+++ b/core/ArchiveProcessor/Rules.php
@@ -164,7 +164,7 @@ class Rules
// We delete more often which is safe, since reports are re-processed on demand
$purgeArchivesOlderThan = Date::factory(time() - 2 * $temporaryArchivingTimeout)->getDateTime();
} else {
- // If archive.php via Cron is building the reports, we should keep all temporary reports from today
+ // If cron core:archive command is building the reports, we should keep all temporary reports from today
$purgeArchivesOlderThan = Date::factory('today')->getDateTime();
}
return $purgeArchivesOlderThan;
@@ -234,7 +234,7 @@ class Rules
if (!$segment->isEmpty()
&& $isArchivingDisabled
&& Config::getInstance()->General['browser_archiving_disabled_enforce']
- && !SettingsServer::isArchivePhpTriggered() // Only applies when we are not running archive.php
+ && !SettingsServer::isArchivePhpTriggered() // Only applies when we are not running core:archive command
) {
Log::debug("Archiving is disabled because of config setting browser_archiving_disabled_enforce=1");
return true;
diff --git a/core/CronArchive.php b/core/CronArchive.php
index 5003cfc3c6..24978f1bab 100644
--- a/core/CronArchive.php
+++ b/core/CronArchive.php
@@ -16,7 +16,7 @@ use Piwik\Plugins\CoreAdminHome\API as APICoreAdminHome;
use Piwik\Plugins\SitesManager\API as APISitesManager;
/**
- * archive.php runs as a cron and is a useful tool for general maintenance,
+ * ./console core:archive runs as a cron and is a useful tool for general maintenance,
* and pre-process reports for a Fast dashboard rendering.
*/
class CronArchive
@@ -88,7 +88,7 @@ class CronArchive
public $testmode = false;
/**
- * Returns the option name of the option that stores the time the archive.php script was last run.
+ * Returns the option name of the option that stores the time core:archive was last executed.
*
* @param int $idsite
* @param string $period
@@ -382,7 +382,7 @@ class CronArchive
return false;
}
- // Fake that the request is already done, so that other archive.php
+ // Fake that the request is already done, so that other core:archive commands
// running do not grab the same website from the queue
Option::set($this->lastRunKey($idsite, "day"), time());
@@ -803,7 +803,7 @@ class CronArchive
$websiteIds = array_intersect($websiteIds, $this->allWebsites);
/**
- * Triggered by the **archive.php** cron script so plugins can modify the list of
+ * Triggered by the **core:archive** console command so plugins can modify the list of
* websites that the archiving process will be launched for.
*
* Plugins can use this hook to add websites to archive, remove websites to archive, or change
@@ -849,7 +849,7 @@ class CronArchive
private function initPiwikHost()
{
- // If archive.php run as a web cron, we use the current hostname+path
+ // If core:archive command run as a web cron, we use the current hostname+path
if (!Common::isPhpCliMode()) {
if (!empty(self::$url)) {
$piwikUrl = self::$url;
@@ -858,7 +858,7 @@ class CronArchive
$piwikUrl = SettingsPiwik::getPiwikUrl();
}
} else {
- // If archive.php run as CLI/shell we require the piwik url to be set
+ // If core:archive command run as CLI/shell we require the piwik url to be set
$piwikUrl = $this->getParameterFromCli("url", true);
if (!$piwikUrl) {
diff --git a/core/FrontController.php b/core/FrontController.php
index 5d9ddaf3b3..9a9927eb03 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -455,7 +455,7 @@ class FrontController extends Singleton
private function handleProfiler()
{
if (!empty($_GET['xhprof'])) {
- $mainRun = $_GET['xhprof'] == 1; // archive.php sets xhprof=2
+ $mainRun = $_GET['xhprof'] == 1; // core:archive command sets xhprof=2
Profiler::setupProfilerXHProf($mainRun);
}
}
diff --git a/core/Http.php b/core/Http.php
index d6e7376999..f131bc44cd 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -443,7 +443,7 @@ class Http
CURLOPT_HEADER => is_resource($file) ? false : true,
CURLOPT_CONNECTTIMEOUT => $timeout,
);
- // Case archive.php is triggering archiving on https:// and the certificate is not valid
+ // Case core:archive command is triggering archiving on https:// and the certificate is not valid
if ($acceptInvalidSslCertificate) {
$curl_options += array(
CURLOPT_SSL_VERIFYHOST => false,
diff --git a/core/Log.php b/core/Log.php
index 8e090fa4a0..e9b9153e17 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -43,7 +43,7 @@ use Piwik\Db;
* severe than the current log level will be outputted. Others will be
* ignored. The default level is **WARN**.
* - `log_only_when_cli`: 0 or 1. If 1, logging is only enabled when Piwik is executed
- * in the command line (for example, by the archive.php cron
+ * in the command line (for example, by the core:archive command
* script). Default: 0.
* - `log_only_when_debug_parameter`: 0 or 1. If 1, logging is only enabled when the
* `debug` query parameter is 1. Default: 0.
diff --git a/core/Period/Range.php b/core/Period/Range.php
index b60cc4ca61..b2717b4824 100644
--- a/core/Period/Range.php
+++ b/core/Period/Range.php
@@ -23,7 +23,7 @@ use Piwik\Piwik;
* date=2007-07-24,2013-11-15).
*
* The range period differs from other periods mainly in that since it is arbitrary,
- * range periods are not pre-archived by the **archive.php** cron script.
+ * range periods are not pre-archived by the cron core:archive command.
*
* @api
*/
diff --git a/core/SettingsPiwik.php b/core/SettingsPiwik.php
index 6720853c45..3def75d159 100644
--- a/core/SettingsPiwik.php
+++ b/core/SettingsPiwik.php
@@ -159,7 +159,7 @@ class SettingsPiwik
$isPiwikCoreDispatching = defined('PIWIK_ENABLE_DISPATCH') && PIWIK_ENABLE_DISPATCH;
if (Common::isPhpCliMode()
- // in case archive.php is triggered with domain localhost
+ // in case core:archive command is triggered (often with localhost domain)
|| SettingsServer::isArchivePhpTriggered()
// When someone else than core is dispatching this request then we return the URL as it is read only
|| !$isPiwikCoreDispatching
diff --git a/core/SettingsServer.php b/core/SettingsServer.php
index ae9f6de4b6..f50156d7fe 100644
--- a/core/SettingsServer.php
+++ b/core/SettingsServer.php
@@ -132,7 +132,7 @@ class SettingsServer
$minimumMemoryLimit = Config::getInstance()->General['minimum_memory_limit'];
if (self::isArchivePhpTriggered()) {
- // archive.php: no time limit, high memory limit
+ // core:archive command: no time limit, high memory limit
self::setMaxExecutionTime(0);
$minimumMemoryLimitWhenArchiving = Config::getInstance()->General['minimum_memory_limit_when_archiving'];
if ($memoryLimit < $minimumMemoryLimitWhenArchiving) {
diff --git a/core/TaskScheduler.php b/core/TaskScheduler.php
index dabf4241d2..a3eab34c24 100644
--- a/core/TaskScheduler.php
+++ b/core/TaskScheduler.php
@@ -21,7 +21,7 @@ define('DEBUG_FORCE_SCHEDULED_TASKS', false);
* weekly, monthly, etc.). They are registered with **TaskScheduler** through the
* {@hook TaskScheduler.getScheduledTasks} event.
*
- * Tasks are executed when the cron archive.php script is executed.
+ * Tasks are executed when the cron core:archive command is executed.
*
* ### Examples
*
diff --git a/core/Url.php b/core/Url.php
index f5814aaeec..df60c388d1 100644
--- a/core/Url.php
+++ b/core/Url.php
@@ -305,7 +305,7 @@ class Url
}
/**
- * Sets the host. Useful for CLI scripts, eg. archive.php
+ * Sets the host. Useful for CLI scripts, eg. core:archive command
*
* @param $host string
*/