Open Journal Systems  3.3.0
vendorPath.php
1 <?php
2 /*
3  * citeproc-php
4  *
5  * @link http://github.com/seboettg/citeproc-php for the source repository
6  * @copyright Copyright (c) 2017 Sebastian Böttger.
7  * @license https://opensource.org/licenses/MIT
8  */
9 
10 if (!function_exists('vendorPath')) {
14  function vendorPath() {
15 
16  if (file_exists(__DIR__ . '/vendor/')) {
17  return __DIR__ . '/vendor';
18  } else {
19  if (!file_exists(__DIR__ . '/../../')) {
20  return false;
21  } else {
22  return __DIR__ . '/../..';
23  }
24  }
25  }
26 }