Thread:Extension talk:UserFunctions/$wgUFEnablePersonalDataFunctions = true; not working/reply (9)

I hacked UserFunctions 2.2 to get it to work on our MediaWiki 1.18.1. In UserFunctions.php, line 80

if (class_exists("RequestContext")) {

returns "true" but line 81 after it

$cur_ns = RequestContext::getMain->getTitle->getNamespace;

always sets $cur_ns to "0". Since my MW installation is on an internal Corporate network, and I'm not worried about NameSpace restrictions, I've just set line 87 to "true"

$process = true;

I wish I knew PHP better to get it working right, but at least now it works (abet with no restrictions).