Menu

#6 Fix for when using _current_wordpress_theme

open
nobody
None
5
2008-07-03
2008-07-03
littleram
No

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!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB