Changeset 5153 for trunk/admin/themes_new.php
- Timestamp:
- Mar 17, 2010, 1:48:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes_new.php
r5143 r5153 3 3 // | Piwigo - a PHP based picture gallery | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-20 09Piwigo Team http://piwigo.org |5 // | Copyright(C) 2008-2010 Piwigo Team http://piwigo.org | 6 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | … … 27 27 } 28 28 29 include_once(PHPWG_ROOT_PATH.'admin/include/ plugins.class.php');29 include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); 30 30 31 31 $base_url = get_root_url().'admin.php?page='.$page['page']; 32 32 33 $themes = new plugins(); 33 $themes = new themes(); 34 $themes->set_tabsheet('themes_new'); 34 35 35 36 // +-----------------------------------------------------------------------+ … … 55 56 if (isset($_GET['revision']) and isset($_GET['extension']) and !is_adviser()) 56 57 { 57 $install_status = $themes->extract_ plugin_files(58 $install_status = $themes->extract_theme_files( 58 59 'install', 59 60 $_GET['revision'], 60 $_GET['extension'], 61 'theme' 61 $_GET['extension'] 62 62 ); 63 63 … … 106 106 $template->set_filenames(array('themes' => 'themes_new.tpl')); 107 107 108 if ($themes->get_server_ plugins(true, 'theme'))108 if ($themes->get_server_themes(true)) // only new themes 109 109 { 110 foreach($themes->server_ plugins as $theme)110 foreach($themes->server_themes as $theme) 111 111 { 112 112 $url_auto_install = htmlentities($base_url) … … 119 119 array( 120 120 'name' => $theme['extension_name'], 121 's rc' => PEM_URL.'/upload/extension-'.$theme['extension_id'].'/thumbnail.jpg',121 'screenshot' => PEM_URL.'/upload/extension-'.$theme['extension_id'].'/thumbnail.jpg', 122 122 'install_url' => $url_auto_install, 123 123 )
Note: See TracChangeset
for help on using the changeset viewer.