mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-03-02 02:29:25 +01:00
no more require_once()
This commit is contained in:
parent
4325526a3c
commit
7d274b3fb0
@ -27,7 +27,7 @@
|
|||||||
OCP\User::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OCP\App::checkAppEnabled('bookmarks');
|
OCP\App::checkAppEnabled('bookmarks');
|
||||||
|
|
||||||
require_once('bookmarksHelper.php');
|
require_once 'bookmarksHelper.php';
|
||||||
addBookmark($_GET['url'], '', 'Read-Later');
|
addBookmark($_GET['url'], '', 'Read-Later');
|
||||||
|
|
||||||
include 'templates/addBm.php';
|
include 'templates/addBm.php';
|
||||||
|
@ -32,6 +32,6 @@ OCP\JSON::callCheck();
|
|||||||
|
|
||||||
OCP\JSON::checkAppEnabled('bookmarks');
|
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']);
|
$id = addBookmark($_POST['url'], $_POST['title'], $_POST['tags']);
|
||||||
OCP\JSON::success(array('data' => $id));
|
OCP\JSON::success(array('data' => $id));
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<div id="firstrun" style="display: none;">
|
<div id="firstrun" style="display: none;">
|
||||||
<?php
|
<?php
|
||||||
echo $l->t('You have no bookmarks');
|
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();
|
createBookmarklet();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<fieldset class="personalblock">
|
<fieldset class="personalblock">
|
||||||
<span class="bold"><?php echo $l->t('Bookmarklet <br />');?></span>
|
<span class="bold"><?php echo $l->t('Bookmarklet <br />');?></span>
|
||||||
<?php
|
<?php
|
||||||
require_once('bookmarklet.php');
|
require_once 'bookmarklet.php';
|
||||||
createBookmarklet();
|
createBookmarklet();
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user