fix textlib.getCategoryLinks() and textlib.replaceCategoryLinks()

by adding the 'site' argument

loosely related to bug 58084

Change-Id: I563bb24edb7b1db987b78a2d2ef4d6cb7597289f
Merge "fix textlib.getCategoryLinks() and textlib.replaceCategoryLinks()"