Dymanic Category Map Mod

From assela Pathirana
Revision as of 08:20, 22 March 2006 by Root (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:
    1. CategoryMap.php
      require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );
    2. CategoryTravelerBase.php
      require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );
    3. DynamicCategoryMap.php
      require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");
  • Then add the following to the LocalSettings.php

$wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php");