1
0
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:
Thomas Mueller 2012-09-05 23:28:59 +02:00
parent 4325526a3c
commit 7d274b3fb0
4 changed files with 4 additions and 4 deletions

View File

@ -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';

View File

@ -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));

View File

@ -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>

View File

@ -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>