Ignore:
Timestamp:
Feb 18, 2012, 10:18:34 PM (12 years ago)
Author:
patdenice
Message:

feature:2577
Automaticaly install smartpocket during install or upgrade.
hide mobile theme from themes list on user side.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r13240 r13242  
    758758 * returns available themes
    759759 */
    760 function get_pwg_themes()
     760function get_pwg_themes($show_mobile=false)
    761761{
    762762  global $conf;
     
    774774  while ($row = pwg_db_fetch_assoc($result))
    775775  {
     776    if ($row['id'] == $conf['mobile_theme'])
     777    {
     778      if (!$show_mobile)
     779      {
     780        continue;
     781      }
     782      $row['name'] .= ' ('.l10n('Mobile').')';
     783    }
    776784    if (check_theme_installed($row['id']))
    777785    {
Note: See TracChangeset for help on using the changeset viewer.