mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-01-03 14:42:47 +01:00
no more require_once()
This commit is contained in:
parent
390d608c1c
commit
190a070f15
@ -27,7 +27,7 @@ if(!isset($_POST['path'])) {
|
||||
bailOut($l->t('No file path was submitted.'));
|
||||
}
|
||||
|
||||
require_once('news/opmlparser.php');
|
||||
require_once 'news/opmlparser.php';
|
||||
|
||||
$raw = file_get_contents($_POST['path']);
|
||||
|
||||
|
@ -27,7 +27,7 @@ if(!isset($_POST['path'])) {
|
||||
bailOut($l->t('No file path was submitted.'));
|
||||
}
|
||||
|
||||
require_once('news/opmlparser.php');
|
||||
require_once 'news/opmlparser.php';
|
||||
|
||||
$raw = file_get_contents($_POST['path']);
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace OCA\News;
|
||||
|
||||
// load SimplePie library
|
||||
//TODO: is this a suitable place for the following require?
|
||||
require_once('news/3rdparty/SimplePie/autoloader.php');
|
||||
require_once 'news/3rdparty/SimplePie/autoloader.php';
|
||||
|
||||
class Utils {
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
require_once(OC_App::getAppPath('news') .'/templates/subscribelet.php');
|
||||
require_once OC_App::getAppPath('news') .'/templates/subscribelet.php';
|
||||
echo '<h1>' . $l->t('Or...') . '</h1>';
|
||||
?>
|
||||
<?php createSubscribelet(); ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<dt><?php echo $l->t('Subscribelet'); ?></dt>
|
||||
<dd>
|
||||
<?php
|
||||
require_once(OC_App::getAppPath('news') .'/templates/subscribelet.php');
|
||||
require_once OC_App::getAppPath('news') .'/templates/subscribelet.php';
|
||||
createSubscribelet();
|
||||
?>
|
||||
</dd>
|
||||
|
Loading…
Reference in New Issue
Block a user