mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-02 06:24:11 +01:00
no more require_once()
This commit is contained in:
parent
4325526a3c
commit
7d274b3fb0
@ -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';
|
||||
|
@ -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));
|
||||
|
@ -20,7 +20,7 @@
|
||||
<div id="firstrun" style="display: none;">
|
||||
<?php
|
||||
echo $l->t('You have no bookmarks');
|
||||
require_once(OC_App::getAppPath('bookmarks') .'/templates/bookmarklet.php');
|
||||
require_once OC_App::getAppPath('bookmarks') .'/templates/bookmarklet.php';
|
||||
createBookmarklet();
|
||||
?>
|
||||
</div>
|
||||
|
@ -10,7 +10,7 @@
|
||||
<fieldset class="personalblock">
|
||||
<span class="bold"><?php echo $l->t('Bookmarklet <br />');?></span>
|
||||
<?php
|
||||
require_once('bookmarklet.php');
|
||||
require_once 'bookmarklet.php';
|
||||
createBookmarklet();
|
||||
?>
|
||||
</fieldset>
|
||||
|
Loading…
Reference in New Issue
Block a user