Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
614a4dea
Commit
614a4dea
authored
Dec 06, 2009
by
webchick
Browse files
#320132
by kbahey, catch: Make path.inc swappable.
parent
d57f7baa
Changes
4
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
614a4dea
...
...
@@ -4491,7 +4491,7 @@ function _drupal_bootstrap_full() {
return
;
}
$called
=
1
;
require_once
DRUPAL_ROOT
.
'/includes/path.inc'
;
require_once
DRUPAL_ROOT
.
'/
'
.
variable_get
(
'path_inc'
,
'
includes/path.inc'
)
;
require_once
DRUPAL_ROOT
.
'/includes/theme.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/pager.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/menu.inc'
;
...
...
includes/theme.maintenance.inc
View file @
614a4dea
...
...
@@ -22,7 +22,7 @@ function _drupal_maintenance_theme() {
return
;
}
require_once
DRUPAL_ROOT
.
'/includes/path.inc'
;
require_once
DRUPAL_ROOT
.
'/
'
.
variable_get
(
'path_inc'
,
'
includes/path.inc'
)
;
require_once
DRUPAL_ROOT
.
'/includes/theme.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/common.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/unicode.inc'
;
...
...
install.php
View file @
614a4dea
...
...
@@ -240,7 +240,7 @@ function install_begin_request(&$install_state) {
require_once
DRUPAL_ROOT
.
'/modules/system/system.install'
;
require_once
DRUPAL_ROOT
.
'/includes/common.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/file.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/path.inc'
;
require_once
DRUPAL_ROOT
.
'/
'
.
variable_get
(
'path_inc'
,
'
includes/path.inc'
)
;
// Load module basics (needed for hook invokes).
include_once
DRUPAL_ROOT
.
'/includes/module.inc'
;
...
...
modules/node/node.module
View file @
614a4dea
...
...
@@ -1281,7 +1281,7 @@ function node_language_negotiation_info() {
* A valid language code on succes, FALSE otherwise.
*/
function
node_language_provider
(
$languages
)
{
require_once
DRUPAL_ROOT
.
'/includes/path.inc'
;
require_once
DRUPAL_ROOT
.
'/
'
.
variable_get
(
'path_inc'
,
'
includes/path.inc'
)
;
$path
=
isset
(
$_GET
[
'q'
])
?
$_GET
[
'q'
]
:
''
;
list
(
$language
,
$path
)
=
language_url_split_prefix
(
$path
,
$languages
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment