fix encoding issue for sub directory : pass index.php url
Merge pull request #424 from Ritesh-patel/master

fix for buddypress activity update after updating video thumbs
Fix pagging url issue
Merge branch 'master' of https://github.com/rtCamp/buddypress-media
fix undefined $gallery_template issue