View | Details | Raw Unified | Return to bug 6874
Collapse All | Expand All

(-)a/about.pl (+14 lines)
Lines 34-39 use C4::Context; Link Here
34
use C4::Installer;
34
use C4::Installer;
35
35
36
use Koha;
36
use Koha;
37
use Koha::Config::SysPrefs;
37
38
38
#use Smart::Comments '####';
39
#use Smart::Comments '####';
39
40
Lines 157-162 if ( ! defined C4::Context->config('log4perl_conf') ) { Link Here
157
    }
158
    }
158
}
159
}
159
160
161
if ( ! defined C4::Context->config('upload_path') ) {
162
    if ( Koha::Config::SysPrefs->find('OPACBaseURL')->value ) {
163
        # OPACBaseURL seems to be set
164
        push @xml_config_warnings, {
165
            error => 'uploadpath_entry_missing'
166
        }
167
    } else {
168
        push @xml_config_warnings, {
169
            error => 'uploadpath_and_opacbaseurl_entry_missing'
170
        }
171
    }
172
}
173
160
# Test QueryParser configuration sanity
174
# Test QueryParser configuration sanity
161
if ( C4::Context->preference( 'UseQueryParser' ) ) {
175
if ( C4::Context->preference( 'UseQueryParser' ) ) {
162
    # Get the QueryParser configuration file name
176
    # Get the QueryParser configuration file name
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-1 / +15 lines)
Lines 236-241 Link Here
236
                        add it, pointing to the log4perl.conf file for your Koha instance.
236
                        add it, pointing to the log4perl.conf file for your Koha instance.
237
                    </td>
237
                    </td>
238
                </tr>
238
                </tr>
239
                [% ELSIF config_entry.error == 'uploadpath_entry_missing' %]
240
                <tr>
241
                    <th scope="row"><b>Warning</b></th>
242
                    <td>You are missing the <strong>&lt;upload_path&gt;</strong> entry in your koha-conf.xml file. Please
243
                        add it, pointing to the configured file upload directory for your Koha instance.
244
                    </td>
245
                </tr>
246
                [% ELSIF config_entry.error == 'uploadpath_and_opacbaseurl_entry_missing' %]
247
                <tr>
248
                    <th scope="row"><b>Warning</b></th>
249
                    <td>You are missing the <strong>&lt;upload_path&gt;</strong> entry in your koha-conf.xml file. Please
250
                        add it, pointing to the configured file upload directory for your Koha instance.
251
                        Also note that you need to properly set the <strong>OPACBaseURL</strong> preference for the file upload plugin to work.
252
                    </td>
253
                </tr>
239
                [% END %]
254
                [% END %]
240
            [% END %]
255
            [% END %]
241
            </table>
256
            </table>
242
- 

Return to bug 6874