Skip to content

Commit 1dded86

Browse files
authored
MediaWikiSetup.php: Use the latest version 1.38.2 (hestiacp#2876)
1 parent 627f615 commit 1dded86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/src/app/WebApp/Installers/MediaWiki/MediaWikiSetup.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MediaWikiSetup extends BaseSetup
1111
'name' => 'MediaWiki',
1212
'group' => 'cms',
1313
'enabled' => true,
14-
'version' => '1.37.2',
14+
'version' => '1.38.2',
1515
'thumbnail' => 'MediaWiki-2020-logo.svg' //Max size is 300px by 300px
1616
];
1717

@@ -27,7 +27,7 @@ class MediaWikiSetup extends BaseSetup
2727
],
2828
'database' => true,
2929
'resources' => [
30-
'archive' => [ 'src' => 'https://releases.wikimedia.org/mediawiki/1.37/mediawiki-1.37.2.zip' ],
30+
'archive' => [ 'src' => 'https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.2.zip' ],
3131
],
3232
'server' => [
3333
'nginx' => [
@@ -53,10 +53,10 @@ public function install(array $options = null)
5353

5454
$sslEnabled = ($status->json[$this->domain]['SSL'] == 'no' ? 0 : 1);
5555

56-
$webDomain = ($sslEnabled ? "https://" : "http://") . $this->domain . "/";
56+
$webDomain = ($sslEnabled ? "https://" : "http://") . $this->domain;
5757

5858
$this->appcontext->runUser('v-copy-fs-directory', [
59-
$this->getDocRoot($this->extractsubdir . "/mediawiki-1.37.2/."),
59+
$this->getDocRoot($this->extractsubdir . "/mediawiki-1.38.2/."),
6060
$this->getDocRoot()], $result);
6161

6262
$this->appcontext->runUser('v-run-cli-cmd', ["/usr/bin/php".$options['php_version'],
@@ -67,7 +67,7 @@ public function install(array $options = null)
6767
'--installdbpass=' . $options['database_password'],
6868
'--dbuser=' . $this->appcontext->user() . '_' . $options['database_user'],
6969
'--dbpass=' . $options['database_password'],
70-
'--server=' . $webAddresss,
70+
'--server=' . $webDomain,
7171
'--scriptpath=', // must NOT be /
7272
'--lang=' . $options['language'],
7373
'--pass=' . $options['admin_password'],

0 commit comments

Comments
 (0)