mirror of
https://github.com/friendica/friendica
synced 2025-04-25 00:30:32 +00:00
Legacy "include" fragments have been removed
This commit is contained in:
parent
660912351c
commit
4930737cc4
5 changed files with 3 additions and 26 deletions
|
@ -315,17 +315,7 @@ class Worker
|
|||
return false;
|
||||
}
|
||||
|
||||
$valid = false;
|
||||
if (strpos($file, 'include/') === 0) {
|
||||
$valid = true;
|
||||
}
|
||||
|
||||
if (strpos($file, 'addon/') === 0) {
|
||||
$valid = true;
|
||||
}
|
||||
|
||||
// Simply return flag
|
||||
return $valid;
|
||||
return (strpos($file, 'addon/') === 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -406,11 +396,6 @@ class Worker
|
|||
return true;
|
||||
}
|
||||
|
||||
// The script could be provided as full path or only with the function name
|
||||
if ($include == basename($include)) {
|
||||
$include = 'include/' . $include . '.php';
|
||||
}
|
||||
|
||||
if (!self::validateInclude($include)) {
|
||||
Logger::warning('Include file is not valid', ['file' => $argv[0]]);
|
||||
$stamp = (float)microtime(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue