mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Fix require statements. Fix for oc-1460.
This commit is contained in:
parent
a4deaea7bb
commit
ad653dddc9
@ -25,7 +25,7 @@ OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
require_once 'loghandler.php';
|
||||
require_once __DIR__.'/../loghandler.php';
|
||||
|
||||
$id = isset($_POST['id'])?$_POST['id']:null;
|
||||
$name = isset($_POST['name'])?$_POST['name']:null;
|
||||
|
@ -23,7 +23,8 @@
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
OCP\JSON::callCheck();
|
||||
require_once 'loghandler.php';
|
||||
|
||||
require_once __DIR__.'/../loghandler.php';
|
||||
|
||||
$id = isset($_POST['id'])?$_POST['id']:null;
|
||||
if(!$id) {
|
||||
|
@ -24,7 +24,8 @@
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
OCP\JSON::callCheck();
|
||||
require_once 'loghandler.php';
|
||||
|
||||
require_once __DIR__.'/../loghandler.php';
|
||||
|
||||
$id = $_POST['id'];
|
||||
$checksum = $_POST['checksum'];
|
||||
|
@ -19,7 +19,9 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
require_once 'loghandler.php';
|
||||
|
||||
require_once __DIR__.'/../loghandler.php';
|
||||
|
||||
// Check if we are a user
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
|
Loading…
Reference in New Issue
Block a user