Commit Graph

170 Commits (23bbb003b94c5172d779fdf81ffc950e8cedc2a8)

Author SHA1 Message Date
Gábor Hojtsy 4bdf24ea52 #210219 by htalvitie, yched: initialize block caching properties properly on install (and update bugos RC2 sites as well) 2008-01-28 19:56:27 +00:00
Gábor Hojtsy 10f7a8faa8 #193331 by ufku: the replace parameter was not used in file_save_upload() as documented, fix this 2008-01-28 17:00:36 +00:00
Gábor Hojtsy 279d2d4c44 #213517 by ax: inline documentation cleanup, fixing four unclosed @defgroups 2008-01-28 16:05:17 +00:00
Gábor Hojtsy 8ec14386b8 #207947 by Rok Zlender: whitespace missing between error messages in file.inc 2008-01-09 10:39:48 +00:00
Dries Buytaert d1b58bb9c1 - Patch #199955 by saxofaan: file_upload_max_size() returns results in bytes, not in mega bytes. 2008-01-05 22:41:16 +00:00
Dries Buytaert fd85066b7c - Patch #194369 by webernet: fixed the default files directory on multi-site setups. 2007-12-28 10:50:51 +00:00
Gábor Hojtsy 9b2bf38e83 #194369 by lots of contributors: move default files directory to sites/default/files which can be created automatically on install, so no need to bug the user about it, making the install process easier 2007-12-27 17:25:28 +00:00
Gábor Hojtsy 1d4fc1b1af #202473 by keith.smith: pre-RC1 spell checking on hopefully final text 2007-12-19 21:40:05 +00:00
Gábor Hojtsy 3fb6f14a5a #197267 by ufku: fix copy-pasted incorrect documentation on two file functions 2007-12-03 09:02:37 +00:00
Dries Buytaert 9a96837b89 - Patch #163246 by keith smith, freso, O Govinda, catch, webchick et al: fixed minor spelling issues and fixed spacing issues. 2007-11-26 16:36:44 +00:00
Gábor Hojtsy bc12477e06 #173664 by fractile81: fix order of precedence in file_scan_directory(), so subtheme files will really override parent theme files 2007-11-04 16:22:27 +00:00
Gábor Hojtsy b72600ccb0 #172943 by drewish: fix file_save_upload() conformance to its API documentation by treating the 'dest' param as a directory. Also fixes #176876 so temporary files are properly stored in the temp directory. 2007-10-25 09:05:45 +00:00
Gábor Hojtsy 5bf30f6811 #180126 by mmoreno, drewish and scor: add realpath() call to file_save_data(), so Windows will create temporary files properly 2007-10-18 15:33:00 +00:00
Gábor Hojtsy 19322c375b Four watchdog() calls which still used t(), identified by myself after implementing extraction code for Drupal 6 at #182765 2007-10-15 14:52:18 +00:00
Gábor Hojtsy 194a7977f3 #104220 by ChrisKennedy: remove arbitrary half post max size restriction on maximum uploadable file size 2007-10-08 13:13:13 +00:00
Dries Buytaert 4bb5080ebe - Patch #169982 by moshe, eaton, bjaspan, nedjo, yched, et al: missing feature from schema API: load/save records based upon schema. 2007-10-02 16:15:56 +00:00
Gábor Hojtsy 8929612d29 #159474 by chx: destination file name should be used in help text, not source file name, which is not available even 2007-09-25 12:39:31 +00:00
Gábor Hojtsy c5e2159503 #159475 by paddy_deburca: maxheight is never defined, height should be used 2007-07-25 17:41:27 +00:00
Gábor Hojtsy 6993ea05b7 #159463 by hass (with phpdoc addition from myself): file_scan_directory() should not have a trailing slash in the dir parameter 2007-07-15 19:14:19 +00:00
Dries Buytaert ee701b3336 - Patch #155986 by Uwe: fixed typos. 2007-07-02 14:41:37 +00:00
Dries Buytaert 27388f6655 - Patch #149176 by chx, David et al: getting rid of the sequences table, using db_last_insert_id() instead of db_next_id(). 2007-06-05 12:13:23 +00:00
Dries Buytaert a6c8a06c5b - Patch #148972 by drewish: use correct sequence. 2007-06-04 07:31:59 +00:00
Dries Buytaert 4fd54aabc5 - Patch #115267 by drewish, dopry et al: simplified file uploads code, improved file API, centralized file validation, implemented quotas and fixed file previews. 2007-05-30 08:08:59 +00:00
Dries Buytaert 23e253617d - Patch #140412 by quicksketch: use drupal_set_header() instead of header(). 2007-05-22 17:43:17 +00:00
Dries Buytaert f73610bec6 - Patch #76588 by Gabor: made log messages translatable. Yay. 2007-04-24 13:53:15 +00:00
Dries Buytaert e675979091 - Patch #134493 by douggreen: getting the Drupal coding standards right in core. Woot. Woot. 2007-04-13 08:56:59 +00:00
Steven Wittens f7440d4d73 #130971: Kitchen sink (E_NOTICE compliance / Code style / Bugfix in book toc) 2007-03-27 05:13:55 +00:00
Dries Buytaert dc5843bd30 - Patch #111347 by Steven: refactor url() and l(). 2007-02-15 11:40:19 +00:00
Dries Buytaert 05a708fb06 - Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks. 2007-01-31 15:49:26 +00:00
Dries Buytaert 3b543c18f5 - Rollback of E_ALL patch. Too much extra breakage. 2007-01-25 22:14:06 +00:00
Dries Buytaert fd32b42196 - Patch #112715 by webchick et al: fixed some E_ALL errors. 2007-01-25 21:32:07 +00:00
Steven Wittens 365439ffdf #107015: Code consistency, capitalization of class names. 2007-01-05 05:32:23 +00:00
Steven Wittens 1fee60766e #86737: Security htaccess fix needs to be created with group permissions set. 2007-01-04 07:13:50 +00:00
Dries Buytaert f6259ad36c - Patch #91592 by ChrisKennedy: avoid scanning hidden files and directories. 2006-12-11 16:45:17 +00:00
Dries Buytaert f28aa5f3ec - Patch #92059 by Steven et al: added a memory check to garland/color.module. 2006-12-07 17:02:25 +00:00
Dries Buytaert 1a4aad10ca - Bug #89680: 'not not' -> 'not'. 2006-10-17 19:29:26 +00:00
Dries Buytaert 373e52546d - Patch #86314 by dopry: made previews work. 2006-10-12 15:06:12 +00:00
Neil Drumm e3bf577eb0 #80574 by Steven and chx. Fix file uploads. 2006-08-31 07:30:49 +00:00
Dries Buytaert 67277062ee - Patch #78807 by Darren: remove stale code. 2006-08-30 09:30:43 +00:00
Steven Wittens 81938a3cdc #76802: Introduce placeholder magic into t()
See: http://drupal.org/node/64279#t-placeholders
2006-08-18 12:17:00 +00:00
Neil Drumm 457f5847cb #67244 by Steve Dondley and Morbus Iff, write out a more compatible files/.htaccess. 2006-08-14 05:33:21 +00:00
Neil Drumm 0299beb05e #72545 by pwolanin, validation for upload module administration. 2006-08-06 22:49:27 +00:00
Dries Buytaert e93f8be871 - Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants. 2006-07-05 11:45:51 +00:00
Dries Buytaert 6c38bc57e8 - Patch #60441 by dopry: fixed file_create_url(). 2006-06-09 05:41:25 +00:00
Gerhard Killesreiter 5059b82164 fixing stuff 2006-06-01 21:54:48 +00:00
Gerhard Killesreiter be6b7b0f1d prevent execution of scripts from files directory 2006-05-25 01:33:53 +00:00
Neil Drumm 9cff02e91b #61802 by Zen, Double spaced sentences clean up 2006-05-07 00:08:36 +00:00
Dries Buytaert d071f99172 - Removing trailing whitespace. 2006-04-17 20:48:26 +00:00
Gerhard Killesreiter ab9f953246 #5961, use PHP constants for file uploads. Patch by dopry 2006-04-13 14:47:11 +00:00
Gerhard Killesreiter 70aae83c8e #58166, fixes for typos, patch by Uwe Herrmann 2006-04-11 11:33:15 +00:00
Gerhard Killesreiter e24028e9d1 #53197, function file_check_location return wrong exit code, patch by Patrick Deburca 2006-04-08 18:39:26 +00:00
Gerhard Killesreiter 27ccbf1f6f #55520, improved docs, patch by dopry 2006-03-30 17:45:32 +00:00
Gerhard Killesreiter 4797222c13 #55520, upload.module does not display previews for when private files are enabled, patch by dopry. 2006-03-29 06:49:25 +00:00
Gerhard Killesreiter fef6ede20b #55910, fix warnings in file.inc, patch by chx. 2006-03-26 15:02:51 +00:00
Dries Buytaert 28c0c6197a - Patch #52092 by wtanaka, dopry and moshe: fixed regression with hook_file_download. 2006-03-10 19:02:06 +00:00
Gerhard Killesreiter c126bbaa21 #50234, add documentation to file.inc methods, patch by drewish.
edited for some formatting issues.
2006-03-08 23:42:55 +00:00
Dries Buytaert dda131587f - Patch #5961 by dopry et al: fixed problems with file api and open_basedir restrictions. 2006-03-07 19:14:30 +00:00
Dries Buytaert 360ab25d22 - Patch #43220 by chx: removed the mime type magic until a better fix comes along. 2006-03-02 08:46:50 +00:00
Dries Buytaert 98834e15e3 - Patch #49675 by robert/killes: made replacing files work. 2006-02-22 19:16:37 +00:00
Dries Buytaert ffc7c5c3c6 - Patch #44011 by Souvent22 et al: critical bugfix: make private downloads work again. 2006-01-18 19:18:30 +00:00
Dries Buytaert 399302a215 - Patch #40599 by Chris: minor code improvement: removed redundant isset(). 2006-01-05 10:59:34 +00:00
Dries Buytaert 83cb8d9e95 - Patch #40599 by Chris Johnson: file_download() checks module_invoke() return = -1. 2006-01-04 09:23:44 +00:00
Dries Buytaert 0dfc8e059f - Patch #41437 by webchick: improved code comments. 2005-12-17 17:24:46 +00:00
Dries Buytaert 764f1177ef - Patch #40631 by Chris Johnson: is_array() slower than isset() or empty(). 2005-12-14 20:10:45 +00:00
Dries Buytaert 12e0151715 - Patch #40855 by Ber: fixed typo in watchdog message. 2005-12-12 11:36:56 +00:00
Dries Buytaert fe01762387 - Fixed bug with checking for .txt files. 2005-11-30 19:28:18 +00:00
Dries Buytaert a74ebcc87a - More fixes 2005-11-30 15:31:23 +00:00
Dries Buytaert 2917261693 - Removed valid_input_check(). 2005-11-30 10:27:13 +00:00
Dries Buytaert 2d0df351d7 - Various fixes. Updated CHANGELOG.txt 2005-11-29 20:17:10 +00:00
Dries Buytaert 64a617c208 - Patch #26249 by Morbus: improved handling of temporary files/directory.
If your module uses variable_get('file_directory_temp', ...) or
  variable_get('file_directory_path', ...) please update it to use the new
  API.

  A list of affected modules is available at http://drupal.org/node/26249#comment-54194.
2005-11-12 09:23:50 +00:00
Dries Buytaert 745b7beda8 - Patch #10658 by Morbus: create new folders with the right permissions. 2005-11-04 20:19:14 +00:00
Dries Buytaert 46abc88ee4 - Patch #26249 by crunchywelch, Junyor: use upload_tmp_dir as default temporary directory. Fixed file problems on Windows NT systems. 2005-11-01 16:31:09 +00:00
Dries Buytaert db1ef4bd2d - Patch #21924 by walkah: made enclosures use absolute URLs to work around broken RSS parsers. 2005-09-13 19:05:34 +00:00
Dries Buytaert d7139b85db - Bug #30390: fixed parse error. Alternative fix. 2005-09-06 19:00:55 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert b69b43d1ec - Patch #28482 by Uwe: add CVS $Id$ tags to all source files in Drupal core. This allows admins to know exactly which version of which files they use. In addition I want to use CVS $Id$ tags in my upcoming security.module to check for possible vulnerabilities. That's not possible if some files simply don't have $Id$s.
Note: I also (mostly) unified the tags to use the "// ID" form instead of "/* ID */", but that's more of a cosmetic issue. I'm not sure whether *.txt files and the stuff in themes/ need tags(?).
2005-08-11 12:57:41 +00:00
Dries Buytaert c3cf0622b6 - Patch by Drumm: one more attempt at fixing file_create_path(). 2005-05-18 05:17:11 +00:00
Dries Buytaert fa2469c1dd - Patch #23028 by chx: fixed file_check_location() problems. 2005-05-17 20:49:54 +00:00
Dries Buytaert b0c9983190 - Patch by James/Gerhard: made file_create_path() more robust. 2005-05-14 21:05:08 +00:00
Dries Buytaert 4d95035518 - Patch #22118 by Robin Monks: made file_transfer() more robust. 2005-05-06 09:31:45 +00:00
Dries Buytaert 2debcfb1ef - Patch #15595 by Stefan and Djun: improved status messages.
TODO: we should write down a couple guidelines for these document them in
        the PHPDoc code of drupal_set_message()!  .
2005-05-05 22:22:46 +00:00
Dries Buytaert 7bdcba1720 - Patch #19739 by Uwe: corrected many typo's in the documentation and code comments 2005-03-31 21:18:08 +00:00
Steven Wittens be14203534 - #18817: Clean up plain-text checking (see drupal-devel!) 2005-03-31 09:25:33 +00:00
Dries Buytaert 7dbce6f402 - Removed . We'll reintroduce it when really necessary. 2005-03-08 22:10:26 +00:00
Dries Buytaert 3becbd8997 - Patch #16914 by chx: avoid that putting a .theme file directly in './themes'
breaks your Drupal.  Only themes in './themes/subdir' are picked up now.
2005-03-08 22:06:11 +00:00
Dries Buytaert 173f528f59 - Modified patch #14170 by Neil: improved default workflow (default node type) configuration page.
Modified the patch to remove some redundant code, to translate strings, and to better use the menu system.
2005-01-24 21:20:16 +00:00
Dries Buytaert 64b100d19a - Patch #13260 by UnConeD: watchdog module improvements.
We added a 'severity' column to watchdog():
    watchdog($type, $message, $link) --> watchdog($type, $message, $severity, $link);

    * Specify a severity in case you are reporting a warning or error.
    * The $link-parameter is now the fourth parameter instead of the third.

  TODO: document this in the upgrade guide.
2005-01-09 09:22:40 +00:00
Dries Buytaert 5d759ccbb9 - Patch #5942 by jhriggs and Adrian:
+ added support for multi-site configurations.
    + tidied up some old cruft and added code comments.
2004-11-24 22:44:01 +00:00
Dries Buytaert 918d33f41f - Modified patch #7235: do a better job checking the OS and acting upon it. 2004-11-15 12:04:44 +00:00
Dries Buytaert 63ee97f65d - Patch #9292 by killes from Carl: fixed a PHP5 compatibility problem with file handling. 2004-11-08 22:31:18 +00:00
Steven Wittens d54ef6db84 Rest of #12167 (respect input check bypass permission) 2004-11-03 00:47:27 +00:00
Steven Wittens 3e36c7864b #12167: Respect 'bypass input data check' permission in file.inc. 2004-11-02 12:43:35 +00:00
Steven Wittens 987988300a #12183: surpress php error on copy() 2004-10-28 23:42:36 +00:00
Steven Wittens a4cc9aa817 #12155 : use defined constant rather than integer in file.inc. 2004-10-26 20:57:34 +00:00
Dries Buytaert 10f329c057 - Patch #11728 by Uwe Hermann: fixed some typos in the code comments, Doxygen documentation and screen output.
Uwe: I dropped the 'iff' chunks as 'iff' stands for 'if and only if'.
2004-10-19 18:02:31 +00:00
Dries Buytaert 1c7a8b161a - Patch #10419 by ccourtne: documentation improvements and rename prevention option. 2004-09-17 18:18:04 +00:00
Steven Wittens 793486909f #10803: file_save_data() does not pass $replace along. 2004-09-13 23:30:58 +00:00
Dries Buytaert b84b6e42cf - Patch #10663 by JonBob: documentation improvements: fixed some typos and improved consistency to the use of Doxygen/api.module commands in the comments. 2004-09-09 05:51:08 +00:00
Steven Wittens 44f341bebc Patch by me and Kjartan.
Upload.module
- Fixing a bug caused by the PHP5 patches.
Beware: PHP4's array_merge() will silently accept objects and convert them to arrays. We should not depend on this behaviour in the future.

File.inc / file-using modules:
- Removing the constant FILE_SEPARATOR: forward slashes work fine on Windows, and it was being used incorrectly as an URL separator sometimes.
- Adding @ to mkdir and chmod to supress ugly PHP errors. They are already reported with drupal_set_message().
- Fixing default for variable 'file_directory_temp'.
- Clarifying the help tip for 'file_directory_temp' in admin > settings.
2004-08-24 19:21:30 +00:00
Steven Wittens 51cf18e531 - #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly broken. 2004-08-22 17:03:42 +00:00