Commit Graph

3538 Commits (e891a8785cda646d791c6e8d1c1e6c1c44ef3815)

Author SHA1 Message Date
Dries Buytaert a52cf8297a - Patch #7458 by killes: conditionally include xmlrpc.inc. 2004-08-04 20:36:24 +00:00
Steven Wittens b382692acb Making the xtemplate logo background transparent to make the Safari gamma bug less obvious. 2004-08-04 17:56:11 +00:00
Dries Buytaert 8b820b13ec - Patch #9757 by Al: improved the aggregator help. Help texts should be to the point. 2004-08-04 17:45:46 +00:00
Dries Buytaert 0b15fd476a - Patch #9740 by Bart: added missing {} for table prefixing. 2004-08-04 17:38:24 +00:00
Dries Buytaert c0f6fccac3 - Patch #7336 by TDobes: in various parts of Drupal, we use the title attribute for links to provide a slightly more detailed explanation as to the purpose of a link or where it goes. 2004-08-03 18:01:48 +00:00
Dries Buytaert 254256de82 - Partial patch #9643 by Bart:
+ the confirmation before deleting a comment was missing a check_output.
   + after editing a comment, two pages were shown (two calls to theme('page',..)), replaced this by a drupal_goto.
2004-08-03 17:36:46 +00:00
Dries Buytaert 0582a304fd - Patch by Jeremy: statistics module improvements. 2004-08-03 09:27:00 +00:00
Dries Buytaert a7a5f51c7e - Simplified the block help a bit by removing some dated information. It
should be simplified more.
2004-08-01 19:26:07 +00:00
Dries Buytaert 4aefe695fb - Fixed broken link + removed redundant form descriptions (there is no point
in repeating the title).
2004-08-01 19:20:19 +00:00
Dries Buytaert 619bb4a4ff - Patch by Junyor: fixed typo: 'peformed' -> 'performed' 2004-08-01 08:07:27 +00:00
Dries Buytaert 8f40571dbb - Patch #9430, backported patch from JonBob: fixed typo: 'that that' -> 'that' 2004-07-31 16:27:07 +00:00
Dries Buytaert 64dae93af7 - Patch #9654 by Bart: since the $category paramater was added to user_save,
update 80 (moving the profile fields to their own tables) no longer works.
2004-07-31 16:25:04 +00:00
Dries Buytaert f97c3367b0 - Patch #9649 by JonBob: fixed a buglet in the recent book patch. It tried
to set book breadcrumbs for nodes that weren't books.
2004-07-31 16:23:01 +00:00
Dries Buytaert ca3e769fa6 - Patch by Matt: fixed small typo. 2004-07-31 16:18:26 +00:00
Dries Buytaert 9945bca528 - Patch #9650 by Adrian: this change introduces a module_load function, which maintains a list of modules that have already been loaded in a static array, and will not load another module of the same name, or if the file does not exist.
Modules can be stored anywhere, as there is now a set of functions called module_get_filename, and module_set_filename .. which allow system_listing and module_list to specify the locations of the files.

A new function module_load_all() replaces the hardcoded includes in module_init, and loads all modules which have been enabled, using module_load.

module_listing no longer includes files itself, instead it just keeps the listing (and sets the filenames).

This patch is a requirement for the multisite configuration patch, as overriding modules are currently being loaded due to the only protection of loading them is include_once.
2004-07-31 11:17:27 +00:00
Dries Buytaert 202eee42a9 - Patch #9543 by JonBob: added node-level access control! 2004-07-31 09:30:09 +00:00
Dries Buytaert aed1b0ca9e - Patch #5347 by JonBob:
Here's a new patch that unifies the node/52 and book/view/52 paths for nodes. It involves a small change to hook_view(), which is discussed first:

Currently hook_view() expects node modules to return a themed node. However, each module does this the same way; they modify $node as necessary, then call theme('node', $node) and return the result. We can refactor this so that the calling function node_view() calls theme('node') instead. By doing this, it becomes possible for hook_nodeapi('view') to be called after hook_view() where the node contents are filtered, and before theme('node') where the body is enclosed in other HTML. This way the book module can insert its navigation into the body right before the theming.

Advantages of this refactoring:
- I can use it for book.module to remove the extra viewing path.
- The function of hook_nodeapi('view') becomes more like hook_view(), as neither will expect a return value.
- We more closely follow the flow of other nodeapi calls, which usually directly follow their corresponding specific node type hooks (instead of preceding them).
- The attachment.module people could use it to append their attachments in a list after the node.
- Gabor could use it instead of his filter perversion for his "articles in a series" module.
- A little less code in each view hook.
- The content hook is no longer needed, so that means even less code.

Disadvantages:
- Any modules written to use nodeapi('view') could be affected (but these would all be post-4.4 modules).
- Implementations of hook_view() would need to be updated (but return values would be ignored, so most would work without updates anyway).

Now the patch takes advantage of this API shift to inject its navigation at the end of all book nodes, regardless of the viewing path. In fact, since the paths become identical, I've removed the book/view handler entirely. We should probably provide an .htaccess rewrite for this (one is still needed for node/view/nn anyway). At the same time, there is a check in book_block() that shows the block appropriately on these pages.
2004-07-30 13:37:26 +00:00
Steven Wittens 6c73823b10 Fixing a rather nasty bug with page cache:
The headers stored for cached pages ended in a newline, which caused header("") to get called when serving the page.
On some PHP versions (happens on 4.3.3 at least, but not in 5.0), PHP adds a blank header to the HTTP request (i.e. just \r\n) which ends HTTP headers prematurely and adds a newline at the beginning of the page.

This was not an issue before because we output HTML. Now that we have GZip compression, this bug caused corruption of the output. :P
*phew*
2004-07-29 01:41:33 +00:00
Dries Buytaert cd632f6251 - Alternative fix for search module bug. 2004-07-28 20:32:21 +00:00
Dries Buytaert 4c630e8fe6 - Patch #8497 by JonBob: check the length of a search key before inserting it. 2004-07-28 20:30:37 +00:00
Dries Buytaert bd4f4ebbc3 - Patch #9547 by Eric: fixed avatar/picture upload bug. 2004-07-28 20:18:11 +00:00
Dries Buytaert d21207ae85 - Patch #8531 by drumm: took this date parser from MagpieRSS (conveniently GPL). The main benefit here is that timezones are handled properly (I have been noticing increasing complaints about that). I tested with a few feeds of different time formats and time zones and everything appeared correctly in my site's local time. Making this another function adds the benefit of parsability by other RSS (or other contexts) and RSS extension handling functions, where the W3C DTF is recomended. 2004-07-26 18:42:31 +00:00
Steven Wittens ad5e3ebb75 CSS improvements:
- Restoring background coloring for the watchdog logs (was broken)
- Making watchdog backgrounds lighter, makes it easier on the eyes and improves readability.
- Adjusted the spacing between items on the frontpage a bit to be clearer.
- Fixed the vertical stretching of table rows with form controls in them.
2004-07-25 22:18:32 +00:00
Steven Wittens ef6cbfda6f - Fixing broken tablesort due to typo with quotes. 2004-07-25 19:50:23 +00:00
Dries Buytaert f2ac51dc5e - Patch #9346 by drumm: improved themability of some aggregator pages. 2004-07-25 18:49:57 +00:00
Dries Buytaert f4460da93b - Patch 9543 by JonBob: use drupal_goto() in menu administration. 2004-07-25 18:31:41 +00:00
Dries Buytaert 2af5dff6a2 - Patch #9464 by Moshe: menu.module omitted a pair of braces when calling
db_next_id().
2004-07-25 18:16:49 +00:00
Dries Buytaert 177c93f2bc - Patch #9481 by JonBob: fixed small typo in help text. 2004-07-25 14:35:11 +00:00
Dries Buytaert 702a057683 - Patch #9478 by JonBob: allow printf-style arguments in pager_query.
Currently pager_query() is the black sheep of the database query family, because it does not allow for printf-style arguments to be inserted in the query. This is a problem because it introduces developer confusion when moving from an unpaged query to a paged one, and it encourages substitution of variables directly into the query, which can bypass our check_query() security feature.

  This patch adds this ability to pager_query(). The change is backwards-compatible, but a couple calls to the function in core have been changed to use the new capability.
2004-07-25 14:25:42 +00:00
Dries Buytaert d8d524ffef - Patch #4269 and #4248 by Killes: added missing t()'s to book module. 2004-07-25 14:22:16 +00:00
Steven Wittens 9f30df2cb5 #6599: XTemplate default: removing whitespace in front of doctype 2004-07-23 17:34:24 +00:00
Steven Wittens edc2f13d82 - #9287: More doxygen/documentation fixes by JonBob 2004-07-22 16:06:54 +00:00
Steven Wittens b2882bf29a System.module improvements:
- #8193: Moving the two instances of the timezone list into a function.
- #3859: Adding drupal_goto for module/theme/settings pages. Aside from general drupal_goto usability, this fixes the bug of menu items not immediately appearing after enabling a module.
2004-07-22 02:13:13 +00:00
Steven Wittens c16ada8c46 - #7295: Fixing issue with latest comments being incorrectly displayed on PostgreSQL 2004-07-22 01:31:33 +00:00
Steven Wittens b8d653f1e8 - Fixing bad strpos usage (have to use the ===/!== operators to check for 'false' in this case) 2004-07-21 15:30:35 +00:00
Steven Wittens 6316803373 - Fixing static -> sticky update so it works for node types with underscores in the name. 2004-07-21 14:56:08 +00:00
Steven Wittens 7780c0e8fa Fixing the date for 4.4.1 in Changelog ;). 2004-07-21 00:33:09 +00:00
Dries Buytaert 2a538a399e - Patch by Andy: improved help text / module description. 2004-07-16 08:19:26 +00:00
Dries Buytaert 8aa052dc66 - Patch #9177 by James: fixed distributed authentication. 2004-07-15 17:20:15 +00:00
Dries Buytaert 7765fa1f7a - Patch #9290 by Morbus / JonBob / TDobes: SUBTASK removal patch for menu.inc. 2004-07-15 17:16:58 +00:00
Steven Wittens 1c4cc2623e Removed the 'user' item in the menu which appeared when editing someone else's account. 2004-07-14 23:04:46 +00:00
Dries Buytaert f63c3be30c - Code and documentation improvements by JonBob. 2004-07-14 20:42:20 +00:00
Dries Buytaert 63a327db97 - Patch #9287 by JonBob: made the code style in the three database include files consistent with Drupal standards, and adds a wealth of Doxygen-style comments to aid developers in writing solid database access code using the API. 2004-07-14 19:15:25 +00:00
Dries Buytaert ce8e264382 - Patch #9262 by Ber / JonBob: the menu did not build correctly, thus the additional menu's were never displayed, but were saved. Only the last custom menu was displayed. 2004-07-14 05:46:12 +00:00
Dries Buytaert 9b49f01f11 - Patch #7466 by TDobes: comments module would add a link of register even if "user_register" was set to 0. 2004-07-14 05:44:36 +00:00
Dries Buytaert 1c52b145ba - Patch #8080 by TDobes: added teaser support to the book and page module. 2004-07-13 21:52:35 +00:00
Dries Buytaert 739bb8a868 - Patch #9261 by drumm: made the aggregator overview tables more consistent by adding a items column to the categories table which acts like the same column in the feeds table. 2004-07-13 21:34:14 +00:00
Dries Buytaert 2c9b5e31b7 - Patch #9234 by TDobes: the latest menu changes have caused custom menu blocks not to render any output. If I create a new menu and menu items, and then enable the block, no output from that block is visible.
This commit fixes the problem: custom menus were being defined as MENU_CUSTOM_ITEM rather than MENU_CUSTOM_MENU.  It also fixes a problem in which custom menus were mistakenly given the MENU_VISIBLE_IN_BREADCRUMB bit when edited. This would cause their titles to show up in the breadcrumb (which is undesirable... only menu items should be in there).

Note that this will not fix any non-functioning custom menus you've defined since this bug appeared. You'll have to delete and recreate them or update the "type" column in the DB manually.
2004-07-13 21:23:23 +00:00
Dries Buytaert dbd1c4f1da - Patch #9253 by Morbus: fixed bug that manifested itself with a duplicate page when a user has submitted a comment that goes into the moderation queue. Part of the problem seemed to be that the "your comment is in the moderation queue" message was set as a theme print, as opposed to a drupal_set_message(). This patch fixes that, as well as adding a drupal_goto() to redirect the user back to where they came. 2004-07-13 20:51:29 +00:00
Dries Buytaert df2e5ef505 - Patch #8942 by Morbus: when testing under devel.module, the "SELECT timestamp from {history}" SQL statement is executed multiple times in two different functions. This duplicated code should be placed in a function, and that's been done already with node_last_visited() - the remaining code was just never updated to use the new routine. This patch changes the old code to use node_last_visited, and also modifies node_last_visited() to cache the result of the database call. 2004-07-13 20:44:13 +00:00