Commit Graph

3412 Commits (daf175182e42c2d35fdb744550117eb374e81fc9)

Author SHA1 Message Date
Steven Wittens daf175182e - Adding an update to convert old taxonomy URL aliases to new ones. 2004-08-07 21:20:41 +00:00
Steven Wittens 1e1144f105 - Adding $id$ 2004-08-07 21:00:43 +00:00
Steven Wittens c3737f51ee Cron.php
- #1322: Adding a warning if the cron fails to complete.
- Simplifying odd commenting syntax
2004-08-07 20:59:45 +00:00
Steven Wittens ddb31aaf6b - #3606: Missing translations for user.module watchdog 2004-08-07 19:49:46 +00:00
Dries Buytaert bdbc34c93b - Patch #6760 by JonBob: refactored the taxonomy module URLs to be nicer, improved the code/Doxygen comments.
As discussed before, the path "taxonomy/page/or/1,2" becomes "taxonomy/term/1+2" and the path "taxonomy/page/and/1,2" becomes "taxonomy/term/1,2". The most common case of listing nodes attached to a single term becomes simpler, since it doesn't require a meaningless "or" or "and". A depth of "0" is assumed, but a positive integer or "all" can be used. Feeds are available at "taxonomy/term/1+2/all/feed" and the like.

  This iteration of the patch also changes the structure of taxonomy_select_nodes(), since it was not following Drupal conventions. A handful of contrib modules call this function, and will need to be updated. Instead of passing in a $taxonomy object containing parameters for the function, the parameters are passed independently. This simplifies the code quite a bit. The queries were changed to only return node IDs for speed; all results from this function are passed through node_load() anyway, so the extra information returned was discarded. The AND query was also changed to avoid the strange trick and remove an extra query, at the expense of a table join per root term in the AND. This cleans up the code substantially while at the same time enabling the use of AND with a depth parameter.

  TODO: update contribution modules.
2004-08-07 19:45:54 +00:00
Dries Buytaert 6f024382e5 - Made the taxonomy module use drupal_goto() to fix up the interaction behavior. 2004-08-07 19:28:25 +00:00
Steven Wittens 3e39fa864a Added an upgrade path for old URL aliases to node/view, book/view and user/view. This is amongst other things required for old node aliases to appear in the node form. 2004-08-06 22:43:12 +00:00
Dries Buytaert 821c6d2d17 - Patch #9812 by Adrian: fixed some PostgreSQL/ANSI SQL compabitibility
problems created by the new comment and node access permissions code.
2004-08-06 21:00:43 +00:00
Dries Buytaert 9e54dc27ff - Patch #7968 by Adrian: use the complete URL as the cache ID to make Drupal's
caching work on virtual hosts.
2004-08-06 20:38:48 +00:00
Dries Buytaert 9bad647d76 - Patch #9819 by JonBob: fixed XHTML bug - make sure the <div> is always closed. 2004-08-06 20:18:25 +00:00
Dries Buytaert 9bbdb71ee4 - Patch #9330: ucfirst() gives problem when used with multibyte charset.
Replaced the use of ucfirst() with a CSS-based solution.
2004-08-06 20:15:32 +00:00
Steven Wittens f037130086 - Oopsie when committing. 2004-08-06 11:11:30 +00:00
Steven Wittens 300f91f4a7 - Cleaning up the rediculously long 'if' statement for checking block visibility.
- #9811: Remove session ID before matching block path
2004-08-06 11:10:15 +00:00
Steven Wittens cabd6c892c #9810: PostgreSQL updates by Adrian. 2004-08-06 09:49:25 +00:00
Steven Wittens f584cdf74f #8154 - Default user timezone to site timezone 2004-08-06 04:30:50 +00:00
Dries Buytaert 35cad55e5b - Patch #8523 by killes: avoid profile data being deleted when requesting a new
password.
2004-08-05 20:41:57 +00:00
Dries Buytaert f971b768f6 - Patch by Jeremy: usability improvements for the statistics.module's GUI. 2004-08-05 20:30:16 +00:00
Dries Buytaert b47e4e16d3 - Patch #9794 by JonBob: a bug introduced late in the review process makes individual node views inaccessible to users who should have permission. This does not affect node listings, so was missed. 2004-08-05 20:26:25 +00:00
Dries Buytaert c6b1eaa20d - Patch #9775 by TDobes: consistency operation. Changed to "edit foo," "delete foo," and "view foo" links into simply "edit," "delete," and "view". 2004-08-05 05:40:53 +00:00
Steven Wittens 54d45d6eb7 - #6400 - Nicer arrows for pushbutton template
- Removing gAMA chunk from xtemplate logo.png for less to avoid more gamma issues.
2004-08-05 01:21:15 +00:00
Dries Buytaert 1f26099019 - Patch #9770 by killes: fixed typo in queue module. 2004-08-04 21:51:36 +00:00
Dries Buytaert 07ae0fad65 - Patch #9497 by gordon: made <!--break--> work even when the teaser length
is set to unlimited and fixed up some code comments.
2004-08-04 21:19:12 +00:00
Dries Buytaert b87b2abe65 - Patch #9768 by killes: admin/user/edit/$uid is no more, removed some left-overs. 2004-08-04 21:09:29 +00:00
Dries Buytaert c71bfded3d - Patch #9657: more intelligent theme() function. Hopefully, Adrian will be
able to use this patch too.
2004-08-04 20:40:01 +00:00
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