[gallery/gallery3] 5fca37: #1945 - Extend legal_file helper functions.

GitHub <noreply-9UaJU3cA/F/[email protected]>
Newsgroups gmane.comp.web.gallery.cvs
Message-ID <[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/gallery/gallery3
  Commit: 5fca371a616dba16f955087c4477ee229ee222d0
      https://github.com/gallery/gallery3/commit/5fca371a616dba16f955087c4477ee229ee222d0
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-01-28 (Mon, 28 Jan 2013)

  Changed paths:
    M modules/gallery/controllers/uploader.php
    M modules/gallery/helpers/legal_file.php
    M modules/gallery/models/item.php
    M modules/gallery/tests/Legal_File_Helper_Test.php
    M modules/server_add/controllers/server_add.php

  Log Message:
  -----------
  #1945 - Extend legal_file helper functions.
- Added get_types_by_extension function, which is a merged version of get...types_by_extension functions (similar to get_extensions).
- Added optional extension argument to get...extensions functions similar to get...types_by_extension functions.
- Added unit tests.  Now, every legal_file function has one.
- Restructured helper file to include caches.
- Added array_unique to get...types (derived from get...types_by_extension, which can be many-to-one).
- Edited server_add, uploader, and item model to use new functionality.


  Commit: 2551b31b8f165ad3af8fce5dc927e80bfb945af4
      https://github.com/gallery/gallery3/commit/2551b31b8f165ad3af8fce5dc927e80bfb945af4
  Author: Bharat Mediratta <[email protected]>
  Date:   2013-01-29 (Tue, 29 Jan 2013)

  Changed paths:
    M modules/gallery/controllers/uploader.php
    M modules/gallery/helpers/legal_file.php
    M modules/gallery/models/item.php
    M modules/gallery/tests/Legal_File_Helper_Test.php
    M modules/server_add/controllers/server_add.php

  Log Message:
  -----------
  Merge pull request #106 from shadlaws/fix_1945

#1945 - Extend legal_file helper functions.


Compare: https://github.com/gallery/gallery3/compare/cf58e064d462...2551b31b8f16

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d

__[ g a l l e r y - c h e c k i n s ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.