Skip to content

Commit

Permalink
Fix PHP class autoloading.
Browse files Browse the repository at this point in the history
Move MantisCoreWikiPlugin class into proper file for autoload.
Remove unneeded munging of formatting class name; CoreFormattingPlugin should never need to be autoloaded.
  • Loading branch information
amyreese committed Jan 8, 2009
1 parent 8643197 commit 25cec47
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
12 changes: 12 additions & 0 deletions core/classes/MantisCoreWikiPlugin.class.php
Expand Up @@ -18,6 +18,18 @@

require_once( 'MantisWikiPlugin.class.php' );

/**
* Base that uses the old style wiki definitions from config_inc.php
*/
abstract class MantisCoreWikiPlugin extends MantisWikiPlugin {
function config() {
return array(
'root_namespace' => config_get_global( 'wiki_root_namespace' ),
'engine_url' => config_get_global( 'wiki_engine_url' ),
);
}
}

/**
* Basic Dokuwiki support with old-style wiki integration.
* @package MantisBT
Expand Down
11 changes: 0 additions & 11 deletions core/classes/MantisWikiPlugin.class.php
Expand Up @@ -39,14 +39,3 @@ abstract function link_bug( $p_event, $p_bug_id );
abstract function link_project( $p_event, $p_project_id );
}

/**
* Base that uses the old style wiki definitions from config_inc.php
*/
abstract class MantisCoreWikiPlugin extends MantisWikiPlugin {
function config() {
return array(
'root_namespace' => config_get_global( 'wiki_root_namespace' ),
'engine_url' => config_get_global( 'wiki_engine_url' ),
);
}
}

0 comments on commit 25cec47

Please sign in to comment.