Skip to content

Commit 51011ce

Browse files
committed
Base path.
1 parent 3e7aff2 commit 51011ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/app.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/scripts/drupal.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
fwrite($stdErr, print_r($args,1));
99
});
1010

11-
$docroot = '/php-wasm/persist/drupal-7.95';
11+
$docroot = '/persist/drupal-7.95';
1212
$path = '/node';
1313
$script = 'index.php';
1414

@@ -65,6 +65,8 @@
6565
$itemPath = preg_replace('/^\\/drupal-7.95/', '', $itemPath);
6666
$itemPath = preg_replace('/^\//', '', $itemPath);
6767

68+
$GLOBALS['base_path'] = '/php-wasm' . $docroot . '/';
69+
6870
$_GET['q'] = $itemPath;
6971

7072
menu_execute_active_handler();

0 commit comments

Comments
 (0)