PSR-4 compatible legacy code autoloading.

This commit is contained in:
Yuriy Pikhtarev 2017-05-22 22:52:41 +03:00
commit 80a035d191
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
50 changed files with 5296 additions and 4522 deletions

View file

@ -460,16 +460,16 @@ define('SQL_LAYER', 'mysql');
$bb_cfg = array_merge(bb_get_config(BB_CONFIG), $bb_cfg);
$user = new user_common();
$user = new TorrentPier\Legacy\Common\User();
$userdata =& $user->data;
if (DBG_USER) {
require INC_DIR . '/functions_dev.php';
}
$html = new html_common();
$log_action = new log_action();
$ads = new ads_common();
$ads = new TorrentPier\Legacy\Common\Ads();
$html = new TorrentPier\Legacy\Common\Html();
$log_action = new TorrentPier\Legacy\LogAction();
// TODO temporarily 'cat_forums' always enqueued
$datastore->enqueue(array('cat_forums'));