Jump to content

Topic on Extension talk:ArticleToCategory2

Excluded Categories fix

3
Summary by Kghbln

Committed with 40b6c3159300800a3e2ed5bb814772196c6ee092. Users of MW 1.33+ however need to use the version for MW 1.35+

Schlagmichdoch (talkcontribs)

the flag $wgarticletocategory2ConfigBlacklist = true; is not working by default. To make it work again the following workaround should be good enough:

  1. The flag in LocalSettings.pgp is actually camelcased. Change it to $wgArticleToCategory2ConfigBlacklist = true;
  2. The extension than uses a hook that is long deprecated and leading to a error on every category page (Info). Therefore go to line 40 in ArticleToCategory2.hooks.php and change

           $content = $rev->getText();

to:

           $content = ContentHandler::getContentText($rev->getContent());

Afterwords everthing should be working fine.

Kghbln (talkcontribs)
Kghbln (talkcontribs)