diff -r -u -b zenphoto/zp-core/template-functions.php zenphoto-2/zp-core/template-functions.php --- zenphoto/zp-core/template-functions.php 2008-02-28 13:19:14.000000000 -0800 +++ zenphoto-2/zp-core/template-functions.php 2008-03-07 20:33:42.000000000 -0800 @@ -1841,15 +1841,17 @@ //Print videos if(getImageVideo()) { $ext = strtolower(strrchr(getUnprotectedImageURL(), ".")); + $path = substr(getUnprotectedImageURL(), 0, strrpos(getUnprotectedImageURL(), "/")); if ($ext == ".flv") { //Player Embed... echo '

Get Flash to see this player.

'; } @@ -2020,15 +2038,17 @@ //Print videos if(getImageVideo()) { $ext = strtolower(strrchr(getFullImageURL(), ".")); + $path = substr(getUnprotectedImageURL(), 0, strrpos(getUnprotectedImageURL(), "/")); if ($ext == ".flv") { //Player Embed... echo '

Get Flash to see this player.

'; }