Skip to content

Commit 1cc54ca

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c256a45 + 262c23d commit 1cc54ca

31 files changed

+229371
-101032
lines changed

config/authentication.dist.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ parameters:
7777
referrals: false
7878
dn_string: '{user_identifier}'
7979
query_string: null
80-
base_dn: 'DC=cblue,DC=be'
81-
search_dn: 'CN=admin,dc=cblue,dc=be'
80+
base_dn: 'DC=chamilo,DC=org'
81+
search_dn: 'CN=admin,dc=chamilo,dc=org'
8282
search_password: 'pass'
8383
filter: null
8484
uid_key: 'uid'

public/documentation/installation_guide.html

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2>1. Requirements</h2>
4040
<li>xml</li>
4141
<li>zip</li>
4242
<li>zlib</li>
43-
<li>ldap (optional, but mandatory in dev env)</li>
43+
<li>ldap</li>
4444
<li>redis (optional)</li>
4545
<li>xapian (optional)</li>
4646
</ul>
@@ -96,7 +96,15 @@ <h3>2.5. Installation wizard</h3>
9696
<h3>2.6. Sessions and Redis</h3>
9797
<a id="web-install-sessions" class="anchor"></a>
9898
In this beta version, there are known issues with sessions not getting updated fast enough, which can be solved (temporarily) by using a Redis server. Check the command line instructions for more about this. This is a temporary situation that we expect to fix before the stable release.
99-
99+
100+
<h3>2.7. Clean up</h3>h3>
101+
<a id="web-cleanup" class="anchor"></a>
102+
As recommended by the installer's last page, make sure you change permissions on the config/ dir and the .env file, and you delete the public/main/install/ folder.
103+
<pre>
104+
sudo chown -R root: config/ .env
105+
sudo rm -r public/main/install/
106+
</pre>
107+
100108
<h2>3. Command line installation</h2>
101109
<a id="cli-install" class="anchor"></a>
102110

@@ -106,7 +114,7 @@ <h3>3.1. Software stack</h3>
106114
<pre>
107115
sudo -s
108116
apt update && apt -y upgrade
109-
apt -y install apache2 libapache2-mod-php8.3 mariadb-client mariadb-server redis-server php8.3-{bcmath,curl,exif,gd,iconv,intl,mbstring,mysql,opcache,soap,xml,zip,redis}
117+
apt -y install apache2 libapache2-mod-php8.3 mariadb-client mariadb-server redis-server php8.3-{bcmath,curl,exif,gd,iconv,intl,ldap,mbstring,mysql,opcache,soap,xml,zip,redis}
110118
a2enmod rewrite
111119
cd /var/www/
112120
mkdir chamilo
@@ -116,7 +124,7 @@ <h3>3.1. Software stack</h3>
116124
rm chamilo2.0.0-beta.1.tar.gz
117125
cd chamilo
118126
touch .env
119-
chown -R www-data: var .env
127+
chown -R www-data: var/ config/ .env
120128
mysql -u root -e "GRANT ALL PRIVILEGES ON chamilo.* TO chamilo@localhost IDENTIFIED BY '[choose a password here]'";
121129
mysql -u root -e "FLUSH PRIVILEGES;"
122130
mysql_secure_installation
@@ -179,7 +187,7 @@ <h3>3.3. Web server</h3>
179187
systemctl restart apache2</pre>
180188
<h3>3.4. Files permissions</h3>
181189
<a id="cli-install-permissions" class="anchor"></a>
182-
Make sure the following files and folders are writeable by the web server. Set permissions to 0770 for example:
190+
Make sure the following files and folders are writeable by the web server during the installation. Set permissions to 0770 or the owner to www-data, for example:
183191
<ul>
184192
<li>var/</li>
185193
<li>config/</li>
@@ -202,6 +210,14 @@ <h3>3.6. Installation wizard</h3>
202210
You should now be able to direct your browser to your URL (e.g. <em>[http://my.chamilo.local]</em>).<br>
203211
Chamilo will pick it up from there and offer the installation wizard to help guide you through the rest of the process.
204212

213+
<h3>3.7. Clean up</h3>h3>
214+
<a id="cli-cleanup" class="anchor"></a>
215+
As recommended by the installer's last page, make sure you change permissions on the config/ dir and the .env file, and you delete the public/main/install/ folder.
216+
<pre>
217+
sudo chown -R root: config/ .env
218+
sudo rm -r public/main/install/
219+
</pre>
220+
205221
<h2>4. Command line upgrade from 1.11.*</h2>
206222
<a id="cli-upgrade" class="anchor"></a>
207223
<h3>4.1. Database</h3>
@@ -263,7 +279,7 @@ <h4>6.2.1. WampServer</h4>
263279
<a href="https://www.wampserver.com/">Download</a> and install WampServer (accept default options if in doubt).<br>
264280
Restart WampServer to make these changes effective.<br>
265281
Open http://localhost/ in your browser. If the WampServer welcome screen with server configuration info appears, it means WampServer is working.<br>
266-
Click on the WampServer icon in your status bar and go to PHP -&gt; Extensions. Make sure all the following extensions are enabled: php_curl, php_gd, php_intl, php_mbstring, php_mysqli, php_soap, php_xml, php_zip<br>
282+
Click on the WampServer icon in your status bar and go to PHP -&gt; Extensions. Make sure all the following extensions are enabled: php_curl, php_gd, php_intl, php_ldap, php_mbstring, php_mysqli, php_soap, php_xml, php_zip<br>
267283
Edit C:\wamp64\bin\php\php8.3\php.ini, locate ";extension=sodium" and remove the ";" from the beginning of the line.<br>
268284
Also, update the "memory_limit" setting from "128M" to "2048M" and a few other settings as shown below.<br>
269285
<pre>

public/main/admin/access_urls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_course_category_to_url.php'
172172
);
173173
$actions .= Display::url(
174-
Display::getMdiIcon('clipboard-account', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Assign auth sources to users')),
174+
Display::getMdiIcon('clipboard-account', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Assign auth source to users')),
175175
"/access-url/auth-sources"
176176
);
177177
}

public/main/admin/export_exercise_results.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function iframe_post_message(string $message, bool $ok = false): void
7979
// -----------------------------------------------------------------------------
8080
if (isset($_GET['ajax'])) {
8181
if (!api_is_allowed_to_edit(null, true)) {
82-
send_json(['ok' => false, 'message' => get_lang('NotAllowed')], 403);
82+
send_json(['ok' => false, 'message' => get_lang('Not allowed')], 403);
8383
}
8484

8585
$ajax = (string) $_GET['ajax'];
@@ -413,7 +413,7 @@ function loadExercises(sessionId, courseId) {
413413
'<div id=\"export-overlay\">' +
414414
'<div class=\"box\">' +
415415
'<div class=\"spinner\"></div>' +
416-
'<div class=\"label\">".addslashes(get_lang('Please wait this could take a while'))."</div>' +
416+
'<div class=\"label\">".addslashes(get_lang('Please wait. This could take a while...'))."</div>' +
417417
'<div class=\"hint\">".addslashes(get_lang('Generating file, do not close this tab'))."</div>' +
418418
'</div>' +
419419
'</div>'
@@ -579,7 +579,7 @@ function deleteCookie(name) {
579579
// Validation
580580
$form->addRule('start_date', get_lang('Invalid date'), 'datetime');
581581
$form->addRule('end_date', get_lang('Invalid date'), 'datetime');
582-
$form->addRule(['start_date','end_date'], get_lang('StartDateShouldBeBeforeEndDate'), 'date_compare', 'lte');
582+
$form->addRule(['start_date','end_date'], get_lang('Start date must be before the end date'), 'date_compare', 'lte');
583583

584584
// Required (session can be 0)
585585
$form->addRule('selected_course', get_lang('Required field'), 'required');

public/main/admin/filler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ class="group flex items-center justify-between rounded-xl border border-gray-25
129129
<span class="font-medium text-gray-90"><?php echo get_lang('Fill users'); ?></span>
130130
</div>
131131
<span class="rounded-md bg-primary/10 px-2 py-1 text-xs font-medium text-primary">
132-
<?php echo get_lang('Run'); ?>
133-
</span>
132+
<?php echo get_lang('Proceed'); ?>
133+
</span>
134134
</a>
135135

136136
<a href="filler.php?fill=courses"
@@ -148,8 +148,8 @@ class="group flex items-center justify-between rounded-xl border border-gray-25
148148
<span class="font-medium text-gray-90"><?php echo get_lang('Fill courses'); ?></span>
149149
</div>
150150
<span class="rounded-md bg-secondary/10 px-2 py-1 text-xs font-medium text-secondary">
151-
<?php echo get_lang('Run'); ?>
152-
</span>
151+
<?php echo get_lang('Proceed'); ?>
152+
</span>
153153
</a>
154154
</div>
155155
</section>

public/main/inc/lib/PortfolioNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static function notifyTeachersAndAuthor(PortfolioComment $comment)
1515
$session = $item->getSession();
1616

1717
$messageSubject = sprintf(
18-
get_lang('PortfolioAlertNewCommentSubject'),
18+
get_lang('[Portfolio] New comment in post %s'),
1919
$item->getTitle(true)
2020
);
2121
$userIdListToSend = [];

src/CoreBundle/DataFixtures/LanguageFixtures.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,14 @@ public static function getLanguages(): array
552552
'format' => 'title first_name last_name',
553553
'sort_by' => 'first_name',
554554
],
555+
[
556+
'original_name' => 'ພາສາລາວ',
557+
'english_name' => 'lao',
558+
'isocode' => 'lo',
559+
'available' => 0,
560+
'format' => 'title first_name last_name',
561+
'sort_by' => 'first_name',
562+
],
555563
];
556564
}
557565
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/* For licensing terms, see /license.txt */
6+
7+
namespace Chamilo\CoreBundle\Migrations\Schema\V200;
8+
9+
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
10+
use Doctrine\DBAL\Schema\Schema;
11+
12+
final class Version20251204120000 extends AbstractMigrationChamilo
13+
{
14+
public function getDescription(): string
15+
{
16+
return 'Languages: insert Lao (lo) if missing.';
17+
}
18+
19+
public function up(Schema $schema): void
20+
{
21+
$this->addSql("
22+
INSERT INTO language (original_name, english_name, isocode, available)
23+
SELECT 'ພາສາລາວ', 'lao', 'lo', 0
24+
WHERE NOT EXISTS (SELECT 1 FROM language WHERE isocode = 'lo')
25+
");
26+
}
27+
28+
public function down(Schema $schema): void
29+
{
30+
$this->addSql("DELETE FROM language WHERE isocode = 'lo'");
31+
}
32+
}

tests/behat/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ java -jar /my-dir/selenium-server-standalone-3.1.0.jar
1414

1515
- Download the Chrome driver, unzip and copy into /usr/bin
1616

17-
Check the latest version at https://sites.google.com/a/chromium.org/chromedriver/downloads,
18-
then adapt the following command to the latest version. Use a version that matches your version of the Chrome browser.
17+
Check the latest `chromedriver` version at [https://googlechromelabs.github.io/chrome-for-testing/](https://googlechromelabs.github.io/chrome-for-testing/) that matches your configuration (linux64 for Ubuntu), then adapt the following command to the latest version. Use a version that matches your version of the Chrome browser.
1918

2019
```
21-
cd /tmp && wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && sudo mv chromedriver /usr/local/bin
20+
cd /tmp && wget https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.40/linux64/chromedriver-linux64.zip && unzip chromedriver_linux64.zip && sudo mv chromedriver /usr/local/bin
2221
```
2322

2423
### Chamilo configuration

0 commit comments

Comments
 (0)