File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ protected function loadLegacyIncludes(): void
145
145
{
146
146
/** @var \SplFileInfo $file */
147
147
foreach (Finder::findFiles ('*.inc ' )->in ($ this ->drupalRoot . '/core/includes ' ) as $ file ) {
148
- require $ file ->getPathname ();
148
+ require_once $ file ->getPathname ();
149
149
}
150
150
}
151
151
@@ -231,7 +231,7 @@ protected function loadExtension(Extension $extension): void
231
231
protected function loadAndCatchErrors (string $ path ): void
232
232
{
233
233
try {
234
- require $ path ;
234
+ require_once $ path ;
235
235
} catch (ContainerNotInitializedException $ e ) {
236
236
$ path = str_replace (dirname ($ this ->drupalRoot ) . '/ ' , '' , $ path );
237
237
// This can happen when drupal_get_path or drupal_get_filename are used outside of the scope of a function.
You can’t perform that action at this time.
0 commit comments