Announcement

  •  » Themes
  •  » [resolved] How to know the status of the theme (active,Inactive )

#1 2010-07-01 16:47:23

datajulien
Member
1970-01-01
16

[resolved] How to know the status of the theme (active,Inactive )

I would like to know how I can find the information of status of the theme into the piwigo DB

Today, for deleted, I verify the presence of the folder.
To verify if the theme is active I verify the presence of the theme into the table [piwigo210]_themes
If the folder is present but the theme is not in the table, then it is Inactive.

I would like to know if their is a better way to have the information of active/Inactive.



thanks.

Offline

 

#2 2010-07-01 18:35:42

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [resolved] How to know the status of the theme (active,Inactive )

datajulien wrote:

If the folder is present but the theme is not in the table, then it is Inactive.

I would like to know if their is a better way to have the information of active/Inactive.

That's the good way to do it (using the themes.class.php is even better)


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#3 2010-07-01 18:55:58

datajulien
Member
1970-01-01
16

Re: [resolved] How to know the status of the theme (active,Inactive )

thanks, i will take a look on the themes.class.php.
But it could be easier to add a get_themes_state($theme_id).
From the few i saw, this class is too much dedicated to the admin interface.

Offline

 

#4 2010-07-01 19:32:23

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [resolved] How to know the status of the theme (active,Inactive )

OK, please open a request in the bugtracker.


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 
  •  » Themes
  •  » [resolved] How to know the status of the theme (active,Inactive )

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact