Bug 25109: Add entry in about.pl about the configuration lockdir entry

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomas Cohen Arazi 2020-04-10 19:36:41 -03:00 committed by Martin Renvoize
parent 936976a1fe
commit 2e4fa2d677
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 13 additions and 0 deletions

View File

@ -209,6 +209,12 @@ if ( ! defined C4::Context->config('log4perl_conf') ) {
}
}
if ( ! defined C4::Context->config('lockdir') ) {
push @xml_config_warnings, {
error => 'lockdir_entry_missing'
}
}
if ( ! defined C4::Context->config('upload_path') ) {
if ( Koha::Config::SysPrefs->find('OPACBaseURL')->value ) {
# OPACBaseURL seems to be set

View File

@ -359,6 +359,13 @@
add it, pointing to the log4perl.conf file for your Koha instance.
</td>
</tr>
[% ELSIF config_entry.error == 'lockdir_entry_missing' %]
<tr>
<th scope="row"><b>Warning</b></th>
<td>You are missing the &lt;lockdir&gt; entry in your koha-conf.xml file. Please
add it, pointing to your Koha instance's lock dir.
</td>
</tr>
[% ELSIF config_entry.error == 'uploadpath_entry_missing' %]
<tr>
<th scope="row"><b>Warning</b></th>