Open main menu

Topic on Project:Support desk

< Project:Support desk

What Extension Setup-File Works with wfLoadExtension?

Johnywhy (talkcontribs)

The TopicTags.php: setup file below works with

require_once "$IP/extensions/TopicTags/TopicTags.php";

but it does not work with

# wfLoadExtension( 'TopicTags' );



## Abort if not used within Mediawiki
if( !defined( 'MEDIAWIKI' ) ) {
	echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );

## Register extension setup hook and credits:
$wgExtensionCredits['other'][] = array(
	'name'		=> 'TopicTags',
	'version'	=> '1.0.0',
	'author'	=> array('Johny Why'),
	'url'		=> '',
	'description'	=> 'Enables topic-tags that can be applied to specific locations on pages.'

What's correct format for wfLoadExtension?

I reviewed help files, but can't find the solution.

AhmadF.Cheema (talkcontribs)
Reply to "What Extension Setup-File Works with wfLoadExtension?"