Skip to content

Better class aliasing for compatibility with MediaWiki#25

Open
WikiMANNia wants to merge 1 commit intomywikis:mainfrom
WikiMANNia:patch-6
Open

Better class aliasing for compatibility with MediaWiki#25
WikiMANNia wants to merge 1 commit intomywikis:mainfrom
WikiMANNia:patch-6

Conversation

@WikiMANNia
Copy link
Copy Markdown

I guess
class_alias( '\MediaWiki', '\MediaWiki\Actions\ActionEntryPoint' ) is a mistake, it should be
class_alias( '\ ActionEntryPoint', '\MediaWiki\Actions\ActionEntryPoint' )

And
if ( class_exists( \ClassName::class ) )
is a better and more secure choice to
if ( version_compare( MW_VERSION, '1.xy', '<' ) )

I guess
class_alias( '\MediaWiki', '\MediaWiki\Actions\ActionEntryPoint' )
is a mistake, it should be
class_alias( '\ ActionEntryPoint', '\MediaWiki\Actions\ActionEntryPoint' )

And
if ( class_exists( \ClassName::class ) )
is a better and more secure choice to
if ( version_compare( MW_VERSION, '1.xy', '<' ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant