Fork me on GitHub
Subscribe 4

Ticket #449 (fixed enhancement)

Sort plugins list

  • Created: 2011-05-26 09:36:19
  • Reported by: daris
  • Assigned to: Reines
  • Milestone: 1.4.6
  • Component: plugins
  • Priority: low

Plugins list in admin panel isn't sorted:

Polls
Languages and styles
User management
Translate
Example
Attachment Mod
Adsense Options
Private messaging
Friendly URL
ChatBox
Portal

History

daris 2011-05-26 09:37:34

  • Uploaded patch sort_plugins.diff. (view)

Franz 2011-05-26 10:27:02

  • Milestone set to 1.4.6.
  • Owner set to Franz.

Ah, good catch. Thanks for the patch.

@Reines: Didn't we want to switch to using glob() anyway? That would allow us to automatically get the files in a sorted fashion.

Reines 2011-05-26 11:16:48

I would much rather use glob since it is easier/tidier, but some (really stupid) hosts seem to block it for "security reasons" so changing bits of the 1.4 branch which already work fine to something which could break them, isn't a good idea.

For 2.0 I would want to change them, though.

Franz 2011-05-26 11:41:59

Ah, ok.

Thanks again for the patch, Daris. Why the "@", though? As far as I can see in the PHP documentation, there are no errors to suppress.

daris 2011-05-26 11:45:22

I don't know smile I saw this somewhere in fluxbb (don't remember where)

daris 2011-05-26 14:53:48

It should use natcasesort() rather than sort() as forum_list_styles and forum_list_langs uses it for sorting

Reines 2011-06-05 19:18:44

Commit 2e83328 to fluxbb fluxbb-1.4

Sorting the admin plugin list. #449

Reines 2011-06-05 19:19:41

  • Owner changed from Franz to Reines.
  • Status changed from open to fixed.

Done, cheers.

quy 2011-06-28 17:42:59

natcasesort expects a single dimension array. Fixed "Array to string conversion" notice.