Merge pull request #12974 from ibennetch/autoload-error-QA_4_7

Better error message when Composer files are missing.
This commit is contained in:
Michal Čihař 2017-02-09 16:46:28 +01:00 committed by GitHub
commit 049382b813
2 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,7 @@ phpMyAdmin - ChangeLog
- issue #12954 Fixed export of tracking data
- issue #12960 Enclose exports in transaction by default
- issue #12966 After adding a column ADD INDEX option won't be displayed when enabling AI
- issue #12972 Better error message when Composer has not been run
4.6.6 (2017-01-23)
- issue #12759 Fix Notice regarding 'Undefined index: old_usergroup'

View File

@ -75,6 +75,13 @@ require_once './libraries/vendor_config.php';
/**
* Activate autoloader
*/
if (! @is_readable('./vendor/autoload.php')) {
die(
'File <tt>./vendor/autoload.php</tt> missing or not readable. <br />'
. 'Most likely you did not run Composer to '
. '<a href="https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git">install library files</a>.'
);
}
require_once './vendor/autoload.php';
/**