1. 10 Feb, 2016 2 commits
  2. 06 Jan, 2016 1 commit
  3. 01 Jan, 2016 1 commit
  4. 04 Jun, 2015 1 commit
  5. 10 Apr, 2015 1 commit
  6. 03 Apr, 2015 1 commit
  7. 04 Mar, 2015 1 commit
  8. 24 Feb, 2015 1 commit
    • mmn's avatar
      Don't store duplicates of files. · 325e784c
      mmn authored
      If a new file is uploaded, it will be matched with a previously uploaded
      file so we don't have to store duplicates. SHA256 is random enough and
      also unlikely enough to cause collisions.
  9. 19 Feb, 2015 1 commit
  10. 12 Feb, 2015 1 commit
  11. 25 Jan, 2015 1 commit
    • mmn's avatar
      Primarily the getUrl call is fixed. Also some new class calls · 8fbdb45c
      mmn authored
      The getUrl call would think that a File_thumbnail object was the child
      of a local File if its filename was set. That has been true up to recent
      development code where a File_thumbnail can have a 'filename' value,
      but the original File does not. Only look at the File object to indicate
      whether it's a local or remote file!
  12. 12 Jan, 2015 1 commit
  13. 12 May, 2014 1 commit
    • mmn's avatar
      File_thumbnail fixes (run scripts/upgrade.php) · 214a10dd
      mmn authored
      We're now capable of doing image rotation for thumbnails based on
      EXIF orientation data. Also, thumbnails are tracked by filenames and
      thus we can delete them from storage when we feel like it.
  14. 21 Apr, 2014 1 commit
    • mmn's avatar
      Dynamically generate thumbnails (see full text) · d59eb5e1
      mmn authored
      The File object now stores width and height of files that can
      supply this kind of information. Formats which we can not read
      natively in PHP do not currently benefit from this. However an
      event hook will be introduced later.
      The CreateFileImageThumbnail event is renamed to:
      CreateFileImageThumbnailSource to clarify that the hooks should not
      generate their own thumbnails but only the source image. Also it now
      accepts File objects, not MediaFile objects.
      The thumbnail generation is documented in the source code. For
      developers, call 'getThumbnail' on a File object and hope for the best.
      Default thumbnail sizes have increased to be more appealing.
  15. 18 Apr, 2014 1 commit
    • mmn's avatar
      File_thumbnail lacked getUrl function · 7025817c
      mmn authored
      The only reason it worked was because DB fetches calls to get$varname if
      the dataobject has a variable with the specific name. However, it started
      blurting out errors that the case must be correct (which would require
      'geturl' to be the function name).
      Since we probably want to replace DB sometime, we'll just override this
      auto-fetching mechanism and use more explicitly defined functions.
  16. 16 Apr, 2014 1 commit
    • mmn's avatar
      MediaFile thumbnail event hooks + VideoThumbnails plugin · 06d4cecf
      mmn authored
      The exception thrown from MediaFile will be caught and simply result in
      no thumbnail at all right now. In the future we might use a catch-all
      and have a "cannot generate preview"-icon or something.
      VideoThumbnails requires php5-ffmpeg and php5-gd.
  17. 12 Aug, 2013 1 commit
    • mmn's avatar
      staticGet for sub-Managed_DataObject classes now calls parent · 1a9a8ea7
      mmn authored
      The parent class for our database objects, Managed_DataObject, has a
      dynamically assigned class in staticGet which objects get put into,
      leaving us with less code to do the same thing.
      We will probably have to move away from the DB_DataObject 'staticGet'
      call as it is nowadays deprecated.
  18. 28 Sep, 2011 1 commit
  19. 22 Aug, 2011 2 commits
  20. 12 Nov, 2010 1 commit
  21. 09 Nov, 2010 1 commit
  22. 28 Sep, 2010 1 commit
  23. 26 Aug, 2009 1 commit
  24. 25 Aug, 2009 3 commits
  25. 15 Jul, 2009 1 commit
  26. 23 Jun, 2009 1 commit
  27. 22 Jun, 2009 2 commits
  28. 20 Jun, 2009 2 commits
  29. 15 May, 2009 1 commit
  30. 11 May, 2009 1 commit
  31. 23 Dec, 2008 2 commits
    • Evan Prodromou's avatar
      change function headers to K&R style · 04ef1ba8
      Evan Prodromou authored
      Another huge change, for PEAR code standards compliance. Function
      headers have to be in K&R style (opening brace on its own line),
      instead of having the opening brace on the same line as the function
      and parameters. So, a little perl magic found all the function
      definitions and move the opening brace to the next line (properly
      indented... usually).
    • Evan Prodromou's avatar
      replace NULL with null · eb2f9c98
      Evan Prodromou authored
      Another global search-and-replace update. Here, I've replaced the PHP
      keyword 'NULL' with its lowercase version. This is another PEAR code
      standards change.
  32. 26 Sep, 2008 2 commits