interfaces: only include interfaces.inc

It's debatable but in general *.lib.inc is side-effect-free code
for the library at hand and not to be grabbed by outside scripts
directly.  The library will include the needed file anyway.
This commit is contained in:
Franco Fichtner 2023-08-02 15:26:33 +02:00
parent d610ab7811
commit ae2b9e3e5e
3 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
require_once("interfaces.lib.inc");
require_once("interfaces.inc");
if (!empty($argv[1])) {
$result = legacy_interface_details($argv[1]);

View File

@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
require_once("interfaces.lib.inc");
require_once("interfaces.inc");
$statuses = array();
foreach (legacy_interfaces_details() as $intf) {

View File

@ -28,7 +28,6 @@
*/
require_once("interfaces.inc");
require_once("interfaces.lib.inc");
$vfaces = [
'_stf',