Skip to content

Commit

Permalink
Feeds: reintroduce autoloading in endpoints (43253)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias committed Dec 16, 2024
1 parent 68dcac9 commit 08d7057
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
5 changes: 4 additions & 1 deletion components/ILIAS/Feeds/resources/feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
* News feed script.
* @author Alexander Killing <[email protected]>
*/

require_once '../vendor/composer/vendor/autoload.php';

ilContext::init(ilContext::CONTEXT_RSS);

ilInitialisation::initILIAS();
Expand Down Expand Up @@ -48,4 +51,4 @@
$writer->showFeed();
} elseif ($requested_blog_id > 0) {
ilObjBlog::deliverRSS($requested_blog_id);
}
}
20 changes: 18 additions & 2 deletions components/ILIAS/Feeds/resources/privfeed.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
<?php

/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/

/**
* News feed script.
Expand All @@ -9,6 +23,8 @@
* @version $Id$
*/

require_once '../vendor/composer/vendor/autoload.php';

ilContext::init(ilContext::CONTEXT_RSS_AUTH);

ilInitialisation::initILIAS();
Expand Down Expand Up @@ -84,4 +100,4 @@
$blankFeedWriter->addItem($feed_item);
$blankFeedWriter->showFeed();
}
}
}

0 comments on commit 08d7057

Please sign in to comment.