Allow Folder::addPathElement() to accept arrays, also corrected docblock
Added missing semi-colon in return
Merge pull request #1697 from bcrowe/2.5-addPathArray

Make addPathElement accept an array

Fixes #3294