Skip to content

Commit

Permalink
docs(*): replace domain name with kohana.top
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinsh committed Dec 23, 2018
1 parent a464eb7 commit affa4ff
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 51 deletions.
26 changes: 13 additions & 13 deletions application/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
/**
* Set the default time zone.
*
* @link http://kohanaframework.org/guide/using.configuration
* @link https://kohana.top/guide/using.configuration
* @link http://www.php.net/manual/timezones
*/
date_default_timezone_set('America/Chicago');

/**
* Set the default locale.
*
* @link http://kohanaframework.org/guide/using.configuration
* @link https://kohana.top/guide/using.configuration
* @link http://www.php.net/manual/function.setlocale
*/
setlocale(LC_ALL, 'en_US.utf-8');

/**
* Enable the Kohana auto-loader.
*
* @link http://kohanaframework.org/guide/using.autoloading
* @link https://kohana.top/guide/using.autoloading
* @link http://www.php.net/manual/function.spl-autoload-register
*/
spl_autoload_register(['Kohana', 'auto_load']);
Expand Down Expand Up @@ -116,20 +116,20 @@
* Enable modules. Modules are referenced by a relative or absolute path.
*/
Kohana::modules([
// 'auth' => MODPATH.'auth', // Basic authentication
// 'cache' => MODPATH.'cache', // Caching with multiple backends
// 'codebench' => MODPATH.'codebench', // Benchmarking tool
// 'database' => MODPATH.'database', // Database access
// 'image' => MODPATH.'image', // Image manipulation
// 'minion' => MODPATH.'minion', // CLI Tasks
// 'orm' => MODPATH.'orm', // Object Relationship Mapping
// 'unittest' => MODPATH.'unittest', // Unit testing
// 'userguide' => MODPATH.'userguide', // User guide and API documentation
// 'auth' => MODPATH . 'auth', // Basic authentication
// 'cache' => MODPATH . 'cache', // Caching with multiple backends
// 'codebench' => MODPATH . 'codebench', // Benchmarking tool
// 'database' => MODPATH . 'database', // Database access
// 'image' => MODPATH . 'image', // Image manipulation
// 'minion' => MODPATH . 'minion', // CLI Tasks
// 'orm' => MODPATH . 'orm', // Object Relationship Mapping
// 'unittest' => MODPATH . 'unittest', // Unit testing
// 'userguide' => MODPATH . 'userguide', // User guide and API documentation
]);

/**
* Cookie Salt
* @see http://kohanaframework.org/3.3/guide/kohana/cookies
* @see https://kohana.top/3.3/guide/kohana/cookies
*
* If you have not defined a cookie salt in your Cookie class then
* uncomment the line below and define a preferrably long salt.
Expand Down
2 changes: 1 addition & 1 deletion modules/codebench/views/codebench.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<p id="footer">
Page executed in <strong><?php echo round(microtime(true) - KOHANA_START_TIME, 2) ?>&nbsp;s</strong>
using <strong><?php echo Text::widont(Text::bytes(memory_get_usage(), 'MB')) ?></strong> of memory.<br />
<a href="http://github.com/kohana/codebench">Codebench</a>, a <a href="http://kohanaframework.org/">Kohana</a> module
<a href="http://github.com/kohana/codebench">Codebench</a>, a <a href="https://kohana.top/">Kohana</a> module
by <a href="http://www.geertdedeckere.be/article/introducing-codebench">Geert De Deckere</a>.
</p>

Expand Down
10 changes: 5 additions & 5 deletions modules/unittest/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
* The directory in which your application specific resources are located.
* The application directory must contain the bootstrap.php file.
*
* @link http://kohanaframework.org/guide/about.install#application
* @link https://kohana.top/guide/about.install#application
*/
$application = 'application';

/**
* The directory in which your modules are located.
*
* @link http://kohanaframework.org/guide/about.install#modules
* @link https://kohana.top/guide/about.install#modules
*/
$modules = 'modules';

/**
* The directory in which the Kohana resources are located. The system
* directory must contain the classes/kohana.php file.
*
* @link http://kohanaframework.org/guide/about.install#system
* @link https://kohana.top/guide/about.install#system
*/
$system = 'system';

/**
* The default extension of resource files. If you change this, all resources
* must be renamed to use the new extension.
*
* @link http://kohanaframework.org/guide/about.install#ext
* @link https://kohana.top/guide/about.install#ext
*/
define('EXT', '.php');

Expand Down Expand Up @@ -59,7 +59,7 @@
* End of standard configuration! Changing any of the code below should only be
* attempted by those with a working knowledge of Kohana internals.
*
* @link http://kohanaframework.org/guide/using.configuration
* @link https://kohana.top/guide/using.configuration
*/
// Make the application relative to the docroot
if (!is_dir($application) AND is_dir(DOCROOT . $application)) {
Expand Down
8 changes: 4 additions & 4 deletions modules/userguide/tests/KodocTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,20 +189,20 @@ public function provider_parse_tags()
[
<<<'COMMENT'
/**
* @link http://kohanaframework.org
* @link https://kohana.top
*/
COMMENT
,
['', ['link' => ['<a href="http://kohanaframework.org">http://kohanaframework.org</a>']]],
['', ['link' => ['<a href="https://kohana.top">https://kohana.top</a>']]],
],
[
<<<'COMMENT'
/**
* @link http://kohanaframework.org Description
* @link https://kohana.top Description
*/
COMMENT
,
['', ['link' => ['<a href="http://kohanaframework.org">Description</a>']]],
['', ['link' => ['<a href="https://kohana.top">Description</a>']]],
],
[
<<<'COMMENT'
Expand Down
4 changes: 2 additions & 2 deletions modules/userguide/views/userguide/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<div id="kodoc-header">
<div class="container">
<a href="http://kohanaframework.org/" id="kodoc-logo">
<a href="https://kohana.top/" id="kodoc-logo">
<img src="<?php echo Route::url('docs/media', ['file' => 'img/kohana.png']) ?>" />
</a>
<div id="kodoc-menu">
Expand Down Expand Up @@ -95,7 +95,7 @@
<?php endif ?>
</div>
<div class="span-12 last right">
<p>Powered by <?php echo HTML::anchor('http://kohanaframework.org/', 'Kohana') ?> v<?php echo Kohana::VERSION ?></p>
<p>Powered by <?php echo HTML::anchor('https://kohana.top/', 'Kohana') ?> v<?php echo Kohana::VERSION ?></p>
</div>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
* The directory in which your application specific resources are located.
* The application directory must contain the bootstrap.php file.
*
* @link http://kohanaframework.org/guide/about.install#application
* @link https://kohana.top/guide/about.install#application
*/
$application = 'application';

/**
* The directory in which your modules are located.
*
* @link http://kohanaframework.org/guide/about.install#modules
* @link https://kohana.top/guide/about.install#modules
*/
$modules = 'modules';

/**
* The directory in which the Kohana resources are located. The system
* directory must contain the classes/kohana.php file.
*
* @link http://kohanaframework.org/guide/about.install#system
* @link https://kohana.top/guide/about.install#system
*/
$system = 'system';

/**
* The default extension of resource files. If you change this, all resources
* must be renamed to use the new extension.
*
* @link http://kohanaframework.org/guide/about.install#ext
* @link https://kohana.top/guide/about.install#ext
*/
define('EXT', '.php');

Expand All @@ -50,7 +50,7 @@
* End of standard configuration! Changing any of the code below should only be
* attempted by those with a working knowledge of Kohana internals.
*
* @link http://kohanaframework.org/guide/using.configuration
* @link https://kohana.top/guide/using.configuration
*/
// Set the full path to the docroot
define('DOCROOT', realpath(__DIR__ . '/..') . DIRECTORY_SEPARATOR);
Expand Down
2 changes: 1 addition & 1 deletion system/config/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
defined('SYSPATH') OR die('No direct script access.');

return [
CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Kohana v' . Kohana::VERSION . ' +http://kohanaframework.org/)',
CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Kohana v' . Kohana::VERSION . ' +https://kohana.top/)',
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_TIMEOUT => 5,
CURLOPT_HEADER => false,
Expand Down
4 changes: 2 additions & 2 deletions system/tests/kohana/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function provider_create()
$info = [
'pubDate' => 123,
'image' => [
'link' => 'http://kohanaframework.org/image.png',
'url' => 'http://kohanaframework.org/', 'title' => 'title'
'link' => 'https://kohana.top/image.png',
'url' => 'https://kohana.top/', 'title' => 'title'
]
];

Expand Down
4 changes: 2 additions & 2 deletions system/tests/kohana/HTMLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ public function provider_anchor()
'Category A',
],
[
'<a href="http://kohanaframework.org">Kohana</a>',
'<a href="https://kohana.top">Kohana</a>',
[],
'http://kohanaframework.org',
'https://kohana.top',
'Kohana',
],
[
Expand Down
2 changes: 1 addition & 1 deletion system/tests/kohana/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ public function provider_client()

return [
[
new Request('http://kohanaframework.org'),
new Request('https://kohana.top'),
$internal_client,
$internal_client
],
Expand Down
24 changes: 12 additions & 12 deletions system/tests/kohana/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function setUp()
parent::setUp();

Kohana::$config->load('url')->set('trusted_hosts', [
'kohanaframework\.org'
'kohana\.top'
]);

$this->cleanCacheDir();
Expand Down Expand Up @@ -124,7 +124,7 @@ public function test_cache_stores_route_objects()
}

/**
* Check appending cached routes. See http://dev.kohanaframework.org/issues/4347
* Check appending cached routes.
*
* @test
* @covers Route::cache
Expand Down Expand Up @@ -700,9 +700,9 @@ public function provider_composing_url_from_route()
['controller' => 'news', 'action' => 'view', 'id' => 42]
],
[
'http://kohanaframework.org/news',
'https://kohana.top/news',
['controller' => 'news'],
'http'
'https'
],
];
}
Expand All @@ -724,7 +724,7 @@ public function test_composing_url_from_route($expected, $params = null, $protoc
->defaults(['controller' => 'welcome']);

$this->setEnvironment([
'_SERVER' => ['HTTP_HOST' => 'kohanaframework.org'],
'_SERVER' => ['HTTP_HOST' => 'kohana.top'],
'Kohana::$base_url' => '/',
'Kohana::$index_file' => '',
]);
Expand Down Expand Up @@ -768,7 +768,7 @@ public function test_is_external_route_from_host()
->defaults([
'controller' => 'foo',
'action' => 'bar',
'host' => 'http://kohanaframework.org'
'host' => 'https://kohana.top'
]);

// Test internal route
Expand All @@ -791,26 +791,26 @@ public function provider_external_route_includes_params_in_uri()
[
'controller' => 'foo',
'action' => 'bar',
'host' => 'kohanaframework.org'
'host' => 'kohana.top'
],
'http://kohanaframework.org/foo/bar'
'http://kohana.top/foo/bar'
],
[
'<controller>/<action>',
[
'controller' => 'foo',
'action' => 'bar',
'host' => 'http://kohanaframework.org'
'host' => 'https://kohana.top'
],
'http://kohanaframework.org/foo/bar'
'https://kohana.top/foo/bar'
],
[
'foo/bar',
[
'controller' => 'foo',
'host' => 'http://kohanaframework.org'
'host' => 'https://kohana.top'
],
'http://kohanaframework.org/foo/bar'
'https://kohana.top/foo/bar'
],
];
}
Expand Down
2 changes: 1 addition & 1 deletion system/tests/kohana/request/client/ExternalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function test_execute($content_type, $body, $post, $expected)
Request::$initial = true;

// Create a mock Request
$request = new Request('http://kohanaframework.org/');
$request = new Request('https://kohana.top/');
$request->method(HTTP_Request::POST)
->headers('content-type', $content_type)
->body($body)
Expand Down
4 changes: 2 additions & 2 deletions system/views/kohana/generate_logo.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

// Get the latest logo contents
$data = base64_encode(file_get_contents('http://kohanaframework.org/media/img/kohana.png'));
$data = base64_encode(file_get_contents('https://kohana.top/assets/img/logo.png'));

// Create the logo file
file_put_contents('logo.php', "<?php
/**
* Kohana Logo, base64_encoded PNG
*
*
* @copyright (c) 2008-2012 Kohana Team
* @license https://kohana.top/license
*/
Expand Down

0 comments on commit affa4ff

Please sign in to comment.