Changeset 2148:621d4c6f4e8c for inc/admin/lib.moduleslist.php
- Timestamp:
- 09/29/13 01:16:03 (12 years ago)
- Branch:
- dcRepo
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.moduleslist.php
r2147 r2148 115 115 public function displayNavMenu() 116 116 { 117 if (empty($this->modules) ) {117 if (empty($this->modules) || $this->getSearchQuery() !== null) { 118 118 return $this; 119 119 } … … 222 222 } 223 223 224 public static function isDistributedModule($module) 225 { 226 return in_array($module, array( 227 'aboutConfig', 228 'akismet', 229 'antispam', 230 'attachments', 231 'blogroll', 232 'blowupConfig', 233 'daInstaller', 234 'fairTrackbacks', 235 'importExport', 236 'maintenance', 237 'pages', 238 'pings', 239 'simpleMenu', 240 'tags', 241 'themeEditor', 242 'userPref', 243 'widgets' 244 )); 245 } 246 224 247 public static function sortModules($modules, $field, $asc=true) 225 248 { … … 270 293 271 294 # Sort modules by id 272 $modules = self::sortModules($this->modules, $sort_field, $this->sort_asc); 295 $modules = $this->getSearchQuery() === null ? 296 self::sortModules($this->modules, $sort_field, $this->sort_asc) : 297 $this->modules; 273 298 274 299 $count = 0; … … 303 328 } 304 329 305 if (in_array(' old_version', $cols)) {330 if (in_array('current_version', $cols)) { 306 331 echo 307 '<td class="nowrap count">'.html::escapeHTML($module[' old_version']).'</td>';332 '<td class="nowrap count">'.html::escapeHTML($module['current_version']).'</td>'; 308 333 } 309 334
Note: See TracChangeset
for help on using the changeset viewer.