Changeset 4712 for extensions
- Timestamp:
- Jan 20, 2010, 7:03:37 PM (15 years ago)
- Location:
- extensions/autoupdate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/autoupdate/class.inc.php
r4711 r4712 99 99 include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php'); 100 100 $plugins = new plugins(); 101 $plugin_list = array();102 101 $ignore_list = unserialize($conf['autoupdate_ignore_list']); 103 102 … … 123 122 if (!empty($_SESSION['plugins_need_update'])) 124 123 { 125 $plugin_list = $_SESSION['plugins_need_update']; 126 127 // Check ignore list 128 foreach ($plugin_list as $plugin_id => $version) 129 { 130 if (in_array($plugins->fs_plugins[$plugin_id]['name'], $ignore_list)) 131 { 132 unset($plugin_list[$plugin_id]); 133 } 134 } 135 136 if (!empty($plugin_list)) 137 { 138 return l10n('Some upgrades are available for you plugins').'<br>' 139 . '<a href="admin.php?page=plugins_update">'.l10n('Click here see upgrade plugins page').'</a>'; 140 } 124 return l10n('Some upgrades are available for you plugins').'<br>' 125 . '<a href="admin.php?page=plugins_update">'.l10n('Click here see upgrade plugins page').'</a>'; 141 126 } 142 127 } 143 128 144 if ($_SESSION['need_update'] === false and $ plugin_list=== array())129 if ($_SESSION['need_update'] === false and $_SESSION['plugins_need_update'] === array()) 145 130 { 146 131 return l10n('Gallery and plugins are up to date'); … … 169 154 if (!$plugins->plugin_version_compare($fs_plugin['version'], $plugin_info['revision_name'])) 170 155 { 171 // Plugin need upgrade172 $_SESSION['plugins_need_update'][$plugin_id] = $plugin_info['revision_name'];173 174 156 if (in_array($fs_plugin['name'], $ignore_list)) 175 157 { 176 158 array_push($new_ignore_list, $fs_plugin['name']); 159 } 160 else 161 { 162 $_SESSION['plugins_need_update'][$plugin_id] = $plugin_info['revision_name']; 177 163 } 178 164 } -
extensions/autoupdate/remote.php
r4711 r4712 38 38 pwg_query($query); 39 39 40 unset($_SESSION['plugins_need_update']); 40 41 echo 'ok'; 41 42 }
Note: See TracChangeset
for help on using the changeset viewer.