Jump to content

IPS Default Theme ID


silenceheaven

Recommended Posts

This is a really big request, I'm on my knees, but I posted a bit ago about the first theme ID not being 1, and breaking some stuff. Do you think we could have it be a constant in init.php instead, so one could manually adjust it?

\IPS\Theme\Dev\Theme

\IPS\Theme::deleteCompiledResources( $dir->getFilename(), null, null, null, ( $id === 0 ? 1 : $id ) );

 

\IPS\Developer

\IPS\Theme::load(1)->saveSet();

 

To something like \IPS\DEFAULT_THEME_ID

 

This would really let me continue to have the first theme in the table have an ID of 3 without manually editing the files everytime.

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...