From 7d274b3fb0cffddb754110838fa447e8d1c075f1 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Wed, 5 Sep 2012 23:28:59 +0200 Subject: [PATCH] no more require_once() --- addBm.php | 2 +- ajax/addBookmark.php | 2 +- templates/list.php | 2 +- templates/settings.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addBm.php b/addBm.php index 4df93c8b..336e2d40 100644 --- a/addBm.php +++ b/addBm.php @@ -27,7 +27,7 @@ OCP\User::checkLoggedIn(); OCP\App::checkAppEnabled('bookmarks'); -require_once('bookmarksHelper.php'); +require_once 'bookmarksHelper.php'; addBookmark($_GET['url'], '', 'Read-Later'); include 'templates/addBm.php'; diff --git a/ajax/addBookmark.php b/ajax/addBookmark.php index baf3a288..37e97108 100644 --- a/ajax/addBookmark.php +++ b/ajax/addBookmark.php @@ -32,6 +32,6 @@ OCP\JSON::callCheck(); OCP\JSON::checkAppEnabled('bookmarks'); -require_once(OC_App::getAppPath('bookmarks').'/bookmarksHelper.php'); +require_once OC_App::getAppPath('bookmarks').'/bookmarksHelper.php'; $id = addBookmark($_POST['url'], $_POST['title'], $_POST['tags']); OCP\JSON::success(array('data' => $id)); diff --git a/templates/list.php b/templates/list.php index 4b84b438..1e42ef64 100644 --- a/templates/list.php +++ b/templates/list.php @@ -20,7 +20,7 @@ diff --git a/templates/settings.php b/templates/settings.php index 31edf747..8f2802cc 100644 --- a/templates/settings.php +++ b/templates/settings.php @@ -10,7 +10,7 @@
t('Bookmarklet
');?>