Dymanic Category Map Mod
From assela Pathirana
Jump to navigationJump to search
This is a very useful extension written by I am using this extension in my personal site. However, I made some minor modifications so that all the required files are held in a directory under the extensions. No files would be copied to includes. I felt that this is a much cleaner way of doing things, for then one should not have to worry about where the related files are, in situations like upgrading of mediawiki version.
(Details of the modification are given below. File:Dymanic Category Map Modified.tar.gz the modified version.)
- Here are the changes:
- CategoryMap.php
require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );
- CategoryTravelerBase.php
require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );
- DynamicCategoryMap.php
require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");
- CategoryMap.php
- Then add the following to the LocalSettings.php
$wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php");