summaryrefslogtreecommitdiff
path: root/modules/gallery
AgeCommit message (Collapse)Author
2013-12-29Do not autoplay videos.Nathan Kinkade
2013-09-06#2083 - Sanitize data from module.info files.shadlaws
2013-09-06#2082 - Sanitize admin theme options that get placed directly in HTML.shadlaws
2013-07-16remove redundant message block CSS classMoritz Stoltenburg
2013-07-09Remove extension from cache busters of non-combined JS/CSS links (follows 2078).shadlaws
2013-07-08Move "item_moved" event later in the item update process. Fixes #2077.shadlaws
Before, this was before the children's caches were cleared, so if the "item_moved" set an album cover, it would fail with an invalid path. For the same reason, we move it after the data file update, too. Lastly, get we get rid of duplicated code in item::move() since the "item_moved" event already does this.
2013-07-06#2078 Missing file type extension on combined css/jsDaniel Muller
2013-06-26Fix Controller_Auth_Test - T_CURLY_OPEN not parsed as "{". Update golden file.shadlaws
--HG-- extra : source : 816294dd5f6fe23160baf9f516e49c66ea8fcb6c
2013-06-12#2074 - Mirror some additional file_proxy checks in data_rest.shadlaws
2013-06-08Rename uploadify SWF wrappers to end in .swf.php for consistency.Bharat Mediratta
2013-06-06Replace flashmediaelement.swf with a PHP wrapper that strips urlBharat Mediratta
fragments and query parameters.
2013-05-15Follow-on to #2069 - Decrease stack size of MPTT rebuild task.shadlaws
This reduces the likelihood that we'll hit a limit with gargantuan galleries. --HG-- extra : source : c4a118d43145a2a4ec9b934d3aebe8f9458bcf07
2013-05-14#2069 - Change "Fix your Gallery" task go faster and be more comprehensive.shadlaws
- optimize MPTT pointer rebuilding for leaf nodes (i.e. non-albums). - reverse order_by to try and preserve existing tree ordering. - reset item level while we're here. - use "$stack[] = 123" instead of array_push($stack, 123) since it's faster. --HG-- extra : source : 297e4c0eccc5a7940224ff8e908b366e83017354
2013-05-09Get rid of the security preamble - we intend for these files to be directly ↵Bharat Mediratta
accessible.
2013-05-09Change upload code to use new uploadify urls.Bharat Mediratta
2013-04-21Ensure that movie titles are purified upon display.shadlaws
2013-04-14Golden file update follow-on for c37288f0b24c19813405096c087ab0c7c171c358Bharat Mediratta
2013-04-14Sanitize all key values.Bharat Mediratta
2013-03-14#2058 - Separate uploader logic into Kohana-, Item-Model-, and ↵shadlaws
Uploadify-specific functions. - Added _process_upload() to handle upload file validation with Kohana. - Added _add_item() to handle item creation and validation with the item model (and logs). - Removed these pieces from add_photo(), which is now rather Uploadify-specific. - Used $_FILES to get filename instead of assuming it's substr(basename($tmp_name), 10). - No net functional changes - works just like before.
2013-03-13Merge pull request #202 from shadlaws/fix_2051Bharat Mediratta
#2051 - Revise how Gallery_View returns combined JS and CSS.
2013-03-13Merge pull request #216 from shadlaws/fix_2061Bharat Mediratta
#2061 - Remove Uploadify from add_photo_form/add_photo_form_completed events.
2013-03-13#2061 - Remove Uploadify from add_photo_form/add_photo_form_completed events.shadlaws
- Added code around event calls in uploader to add Uploadify-specific JS to update the inputs. - Removed Uploadify JS from tag_event. Now it's uploader-agnostic. - Refactored tag_event autocomplete code (no functional changes).
2013-03-13#2059 - Add album name sanitizing similar to photo/movie filename sanitizing.shadlaws
- added legal_file::sanitize_dirname(), analogous to sanitize_filename. - revised item model to use new function when adding or updating an album. - added some legal_file unit tests. - revised some item model unit tests.
2013-03-12Merge pull request #209 from shadlaws/fix_2057Bharat Mediratta
#2057 - Revise item name and slug validation - backslashes, refactor, error messages.
2013-03-12Merge pull request #210 from shadlaws/fix_2055_2056Bharat Mediratta
#2055, 2056 - jQuery updates for .attr("value", [value]) and .keyup(handler).
2013-03-12#2051 - Revise how Gallery_View returns combined JS and CSS.shadlaws
Changed Gallery_View's JS and CSS combining to: - have get_combined() combine all groups if called without arguments. - ensure the "core" group is combined first. - always put links where get_combined() is called, even if combining is disabled (otherwise the order isn't preserved). - add key as cache buster when combining is disabled. - make "LOOKING FOR YOUR CSS/JAVASCRIPT..." comments in get_combined(), not in the theme itself. Also, revised xss_data.txt golden file (line number changes only).
2013-03-12#2057 - Revise item name and slug validation - backslashes, refactor, error ↵shadlaws
messages. - disallowed backslashes in item validation. - refactored the validation logic in the item model a bit. - added no_backslash error messages in edit album/photo/movie forms. - fixed error messages in add album forum (some missing, some text different from edit) - added unit tests - updated to v58 to correct any existing backslashes in item names
2013-03-12#2055, 2056 - jQuery updates for .attr("value", [value]) and .keyup(handler).shadlaws
- changed .attr("value", [value]) to .val([value]) for new jQuery. - changed .keyup(handler) to .on("input keyup", handler) to fire on mouse-only cut'n'paste.
2013-03-12#2054 - Revise albums_form_add.js: update for new jQuery, refactor.shadlaws
- changed "change" event to "input" to catch cut'n'paste - kept "keyup" event for old IE compatibility - removed code duplication by using $(this) and combining events using .on() - replaced attr("value",...) with val() - added quotes around input names
2013-03-11Merge pull request #204 from jozefs/issue1838Bharat Mediratta
#1838 - thumb_proportion should have a minimum size.
2013-03-11Merge pull request #207 from shadlaws/fix_siblings_callbackBharat Mediratta
Fix Theme_View::siblings bug - limit and offset reversed in sibling_callback.
2013-03-11Merge pull request #206 from shadlaws/fix_2050Bharat Mediratta
#2050 - Update Admin_View to handle events like Theme_View.
2013-03-11Fix Theme_View::siblings bug - limit and offset reversed in sibling_callback.shadlaws
I wonder if this could be causing some random issues I see on the forums...
2013-03-11Themes can choose child thumbnail when asking for proportion.Jozef Selesi
This helps themes better calculate an item's container size, for cases when the first item significantly differs in size from the rest. Trac-Ticket: #1838
2013-03-11Themes can set minimum thumbnail size when calculating proportions.Jozef Selesi
This prevents broken item rendering when thumbnails are smaller than the theme design allows. Trac-Ticket: #1838
2013-03-11#2050 - Update Admin_View to handle events like Theme_View.shadlaws
- changed Admin_View event handling to reflect that of Theme_View (gallery_theme gets called first, admin theme gets called last, debug mode isn't called for body_attributes and gets g-clear-fix)
2013-03-10#2048 - Remove unneeded jquery.autocomplete.css/js inclusions.shadlaws
- removed autocomplete.css/js calls in server_add, tag, and g2_import. - revised xss_data.txt golden file (line number changes only).
2013-03-09Merge pull request #196 from shadlaws/fix_2046Bharat Mediratta
#2046 - Change Gallery over to using MediaElementJS as its movie player
2013-03-09Merge pull request #197 from shadlaws/followon_2003Bharat Mediratta
Follow-on to #2003 - Fix innocuous typo (unneeded semi-colon).
2013-03-09Follow-on to #1935 - Ensure ffmpeg is executable, remove possible doubled "/".shadlaws
- movie::find_ffmpeg - made it use is_executable instead of just file_exists. - system::find_binary - removed possible doubled "/" in paths.
2013-03-09#2046 - Change Gallery over to using MediaElementJS as its movie player.shadlaws
2013-03-08Follow-on to #2003 - Fix innocuous typo (unneeded semi-colon).shadlaws
2013-03-06Follow-on for #2043. Fix some tests that made bad assumptions aboutBharat Mediratta
the state of the world. These were uncovered when we ran the tests on Travis which runs the tests in a different order than what I (and apparently others) use on their dev boxes.
2013-03-05Follow-on to 384bc7afc86be706bf61def09afc8306cdad2443 for #2033Bharat Mediratta
Update golden file for XSS test.
2013-03-05Remove stray line of debug output.Bharat Mediratta
2013-03-05#2040 - Deactivate modules that no longer exist.shadlaws
- added module::deactivate_missing_modules() - revised module::deactivate() to change log message if the module is missing - added call to new function in module::get_obsolete_modules_message() - added call to new function when loading admin/maintenance menu
2013-03-04Merge pull request #187 from shadlaws/2033_followonBharat Mediratta
Follow-on to #2033 - Change variables and js script loading for Flash Fl...
2013-03-04Merge pull request #183 from shadlaws/fix_2037Bharat Mediratta
#2037 - Fix bug with "item_before_update" event in item model.
2013-03-04Follow-on to #2033 - Change variables and js script loading for Flash ↵shadlaws
Flowplayer. - changed movie_img event variable names to have "flash" in them. - moved flowplayer.js loading from page.html.php to movieplayer-flash. - removed conditional loading for small, photo-specific JS files in page.html.php to keep combined JS consistent between page types (better for caching).
2013-03-03#2037 - Fix bug with "item_before_update" event in item model.shadlaws