Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Stud.IP
Commits
058f46f7
Commit
058f46f7
authored
1 year ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
fixes #3201
Closes #3201 Merge request
studip/studip!2167
parent
1dbaac0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/classes/StudipAutoloader.php
+3
-3
3 additions, 3 deletions
lib/classes/StudipAutoloader.php
with
3 additions
and
3 deletions
lib/classes/StudipAutoloader.php
+
3
−
3
View file @
058f46f7
...
@@ -62,7 +62,7 @@ class StudipAutoloader
...
@@ -62,7 +62,7 @@ class StudipAutoloader
*/
*/
public
static
function
register
()
public
static
function
register
()
{
{
spl_autoload_register
(
'
static::loadClass'
);
spl_autoload_register
(
[
static
::
class
,
'
loadClass'
]
);
}
}
...
@@ -71,7 +71,7 @@ class StudipAutoloader
...
@@ -71,7 +71,7 @@ class StudipAutoloader
*/
*/
public
static
function
unregister
()
public
static
function
unregister
()
{
{
spl_autoload_unregister
(
'
static::loadClass'
);
spl_autoload_unregister
(
[
static
::
class
,
'
loadClass'
]
);
}
}
/**
/**
...
@@ -151,7 +151,7 @@ class StudipAutoloader
...
@@ -151,7 +151,7 @@ class StudipAutoloader
*/
*/
public
static
function
addClassLookups
(
array
$map
)
public
static
function
addClassLookups
(
array
$map
)
{
{
$map
=
array_map
(
'
self::sanitizePath'
,
$map
);
$map
=
array_map
(
[
self
::
class
,
'
sanitizePath'
]
,
$map
);
self
::
$class_lookup
=
array_merge
(
self
::
$class_lookup
,
$map
);
self
::
$class_lookup
=
array_merge
(
self
::
$class_lookup
,
$map
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment