Fix API not working when parent script uses include with the same name
This commit is contained in:
parent
67c5c06461
commit
03727b01ce
@ -15,8 +15,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'shared/main.php';
|
require_once dirname(__FILE__).'/shared/main.php';
|
||||||
require_once 'shared/requests.php';
|
require_once dirname(__FILE__).'/shared/requests.php';
|
||||||
|
|
||||||
function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build = '16251') {
|
function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build = '16251') {
|
||||||
uupApiPrintBrand();
|
uupApiPrintBrand();
|
||||||
|
6
get.php
6
get.php
@ -15,11 +15,11 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'shared/main.php';
|
require_once dirname(__FILE__).'/shared/main.php';
|
||||||
require_once 'shared/requests.php';
|
require_once dirname(__FILE__).'/shared/requests.php';
|
||||||
|
|
||||||
function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePack = 0, $desiredEdition = 0) {
|
function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePack = 0, $desiredEdition = 0) {
|
||||||
require 'shared/packs.php';
|
require dirname(__FILE__).'/shared/packs.php';
|
||||||
uupApiPrintBrand();
|
uupApiPrintBrand();
|
||||||
|
|
||||||
function packsByEdition($edition, $pack, $lang, $filesKeys) {
|
function packsByEdition($edition, $pack, $lang, $filesKeys) {
|
||||||
|
@ -15,9 +15,10 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
require_once dirname(__FILE__).'/shared/main.php';
|
||||||
|
|
||||||
function uupListEditions($lang = 'en-us') {
|
function uupListEditions($lang = 'en-us') {
|
||||||
require_once 'shared/main.php';
|
require dirname(__FILE__).'/shared/packs.php';
|
||||||
require 'shared/packs.php';
|
|
||||||
|
|
||||||
if($lang) {
|
if($lang) {
|
||||||
$lang = strtolower($lang);
|
$lang = strtolower($lang);
|
||||||
|
@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'shared/main.php';
|
require_once dirname(__FILE__).'/shared/main.php';
|
||||||
|
|
||||||
function uupListIds() {
|
function uupListIds() {
|
||||||
uupApiPrintBrand();
|
uupApiPrintBrand();
|
||||||
|
@ -15,9 +15,10 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
require_once dirname(__FILE__).'/shared/main.php';
|
||||||
|
|
||||||
function uupListLangs() {
|
function uupListLangs() {
|
||||||
require_once 'shared/main.php';
|
require dirname(__FILE__).'/shared/packs.php';
|
||||||
require 'shared/packs.php';
|
|
||||||
|
|
||||||
$langList = array();
|
$langList = array();
|
||||||
$langListFancy = array();
|
$langListFancy = array();
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '0.3.0-alpha';
|
return '0.4.0-alpha';
|
||||||
}
|
}
|
||||||
|
|
||||||
function uupApiPrintBrand() {
|
function uupApiPrintBrand() {
|
||||||
|
@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'shared/main.php';
|
require_once dirname(__FILE__).'/shared/main.php';
|
||||||
|
|
||||||
function uupUpdateInfo($updateId, $onlyInfo = 0) {
|
function uupUpdateInfo($updateId, $onlyInfo = 0) {
|
||||||
$info = @file_get_contents('fileinfo/'.$updateId.'.json');
|
$info = @file_get_contents('fileinfo/'.$updateId.'.json');
|
||||||
|
Loading…
Reference in New Issue
Block a user