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
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)
Offline
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
OK, please open a request in the bugtracker.
Offline