Fix for when using _current_wordpress_theme
Status: Beta
Brought to you by:
elijah_cornell
I was using '_current_wordpress_theme' as my selected theme (i.e. my FAlbum theme was part of my Wordpress theme folder). But it wasn't picking up my CSS file, until I noticed this in wordpress-falbum-plugin.php:
...
if ($style == '_current_wordpress_theme')
{
if (file_exists($tdir_uri."/falbum/falbum.css"))
{
$cssUrl = $tdir_uri."/falbum/falbum.css";
}
else
{
$cssUrl = get_settings('siteurl')."/wp-content/plugins/falbum/styles/default/falbum.css";
}
...
A minor bug. Change the second line to:
if (file_exists($tdir."/falbum/falbum.css")) {
That fixed it!