Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Jan 2005 at 00:42 UTC
Updated:
20 Aug 2005 at 11:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedI like this approach. First of all, it moves only a very little code from common to bootstrap. Second, it does not introduce new init mechanisms like all previous i18n revisions did. Third, the penalty for the code in the case i18n is off, is incredibly small -- one if per url() call.
Comment #2
moshe weitzman commentedInstead of writing a 3 line if() statement, you might use module_invoke('i18n_url_rewrite', $path). that goes for your other patches as well. improves readability slightly.
Comment #3
chx commentedmoshe, I tried and failed. This early you can not call module_invoke.
Comment #4
chx commentedUpgrade to HEAD.
Comment #5
chx commentedLet's move drupal_goto and url to bootstrap and also add a conditional call to i18n. Why i18n and not a full hook_url_rewrite? Things would get ugly here 'cos of the ordering.
i18n uses this patch to redirect home page based on language.
Comment #6
chx commentedoopsie, patch.
Comment #7
moshe weitzman commentedok with me. a few new functions in bootstrap doesn't materially increase php parse time.
Comment #8
jose reyero commentedWhile I think drupal_goto should be in bootstrap.inc, this is not that important anymore, as with the latest changes to common.inc, we can do a plain include.
Also, for the url rewrite, there's some other issue: http://drupal.org/node/29030
So, closing this one for now