diff options
Diffstat (limited to 'tests/jsonapi/_bootstrap.php')
| -rw-r--r-- | tests/jsonapi/_bootstrap.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/jsonapi/_bootstrap.php b/tests/jsonapi/_bootstrap.php index baf3740..cb6df04 100644 --- a/tests/jsonapi/_bootstrap.php +++ b/tests/jsonapi/_bootstrap.php @@ -74,14 +74,12 @@ StudipAutoloader::addAutoloadPath($GLOBALS['STUDIP_BASE_PATH'].'/lib/classes/vis StudipAutoloader::addAutoloadPath($GLOBALS['STUDIP_BASE_PATH'].'/vendor/oauth-php/library'); // Messy file names -StudipAutoloader::addClassLookups( - array( - 'StudipPlugin' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/plugins/core/StudIPPlugin.class.php', - 'messaging' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/messaging.inc.php', - ) -); - -$GLOBALS['_fullname_sql'] = array(); +StudipAutoloader::addClassLookups([ + 'StudipPlugin' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/plugins/core/StudIPPlugin.class.php', + 'messaging' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/messaging.inc.php', +]); + +$GLOBALS['_fullname_sql'] = []; $GLOBALS['_fullname_sql']['full'] = "TRIM(CONCAT(title_front,' ',Vorname,' ',Nachname,IF(title_rear!='',CONCAT(', ',title_rear),'')))"; $GLOBALS['_fullname_sql']['full_rev'] = "TRIM(CONCAT(Nachname,', ',Vorname,IF(title_front!='',CONCAT(', ',title_front),''),IF(title_rear!='',CONCAT(', ',title_rear),'')))"; $GLOBALS['_fullname_sql']['no_title'] = "CONCAT(Vorname ,' ', Nachname)"; |
