diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-05 23:28:59 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-05 23:28:59 +0200 |
commit | 190a070f15b546290853258a389503af98655970 (patch) | |
tree | e63a77e71b36f99876af38a34e337481488ca7b3 | |
parent | 390d608c1cd43b138a8399896c7d8c14fd9b737e (diff) |
no more require_once()
-rw-r--r-- | ajax/exportopml.php | 2 | ||||
-rw-r--r-- | ajax/importopml.php | 2 | ||||
-rw-r--r-- | lib/utils.php | 2 | ||||
-rw-r--r-- | templates/part.nofeeds.php | 2 | ||||
-rw-r--r-- | templates/settings.php | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/ajax/exportopml.php b/ajax/exportopml.php index 7911a4db9..95558a5b4 100644 --- a/ajax/exportopml.php +++ b/ajax/exportopml.php @@ -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']); diff --git a/ajax/importopml.php b/ajax/importopml.php index 80196d176..c339e3f31 100644 --- a/ajax/importopml.php +++ b/ajax/importopml.php @@ -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']); diff --git a/lib/utils.php b/lib/utils.php index ca5501f1f..7c1f8ee4a 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -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 { diff --git a/templates/part.nofeeds.php b/templates/part.nofeeds.php index 0632a191f..1a3355128 100644 --- a/templates/part.nofeeds.php +++ b/templates/part.nofeeds.php @@ -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(); ?> diff --git a/templates/settings.php b/templates/settings.php index 72c5ad2e5..ff1f1ceba 100644 --- a/templates/settings.php +++ b/templates/settings.php @@ -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> |