Please note the doc to change the path /CHANGE_ME/TO_YOUR/DIR/ to your physical path on the machine. I tried to illustrate that in the docs on the code, but perhaps it wasn't exactly clear. Change the line $rootSite =...
Try this and see if it works. I am not sure if it is 100% 1.5, but it might only require a few more small tweaks. forum.joomla.org/viewtopic.php?f=304&t=274529
I made a fix for 1.5 support. Try it, see if it helps you. I had the same issue. forum.joomla.org/viewtopic.php?f=304&t=274529
I pushed out a simple 1.5 fix. forum.joomla.org/viewtopic.php?f=304&t=274529
More