From 52053b3ccd4551b1af45ce01565cfa30418b6eb3 Mon Sep 17 00:00:00 2001 From: umorigu Date: Mon, 30 Oct 2017 03:02:13 +0900 Subject: [PATCH] BugTrack/2213 Fix ArgumentCountError on PHP7.1 --- lib/func.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/func.php b/lib/func.php index 9cc3af0..eecd2b9 100644 --- a/lib/func.php +++ b/lib/func.php @@ -755,7 +755,7 @@ function get_script_uri() * @param $initialize true if you initialize URI * @param $uri_set URI set manually */ -function pkwk_script_uri_base($uri_type, $initialize, $uri_set) +function pkwk_script_uri_base($uri_type, $initialize = null, $uri_set = null) { global $script_directory_index; static $initialized = false; @@ -848,7 +848,7 @@ function pkwk_base_uri_type_stack_peek() * @param $uri_type uri_type on push and non-peeking * @return $uri_type uri_type for peeking */ -function _pkwk_base_uri_type_stack($peek, $push, $uri_type) +function _pkwk_base_uri_type_stack($peek, $push, $uri_type = null) { static $uri_types = array(); if ($peek) { -- 2.11.0