Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fixing duplicate function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed Feb 24, 2016
1 parent 614208b commit cb070ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/src/core/classes/class.AJXP_MetaStreamWrapper.php
Expand Up @@ -119,7 +119,7 @@ protected static function translateScheme($url, $crtInstance = null){

$newUrl = str_replace($currentScheme."://", $newScheme."://", $url);

self::initPath($newUrl);
self::applyInitPathHook($newUrl);

return $newUrl;
}
Expand Down Expand Up @@ -174,10 +174,10 @@ public static function actualRepositoryWrapperClass($repositoryId){
*
* @param string $path
*/
public static function initPath($path) {
public static function applyInitPathHook($path) {
$currentScheme = parse_url($path, PHP_URL_SCHEME);
$wrapper = self::findWrapperClassName($currentScheme);
call_user_func(array($wrapper, "initPath"), $path);
call_user_func(array($wrapper, "applyInitPathHook"), $path);
}

/**
Expand Down
Expand Up @@ -44,7 +44,7 @@ class AJXP_SchemeTranslatorWrapper extends AJXP_MetaStreamWrapper implements Ajx
/*
* Initialise the path for a file
*/
public static function initPath($path) {
public static function applyInitPathHook($path) {
// Not defined
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/Stream/AuthWrapper.php
Expand Up @@ -17,7 +17,7 @@

class AuthWrapper extends AJXP_SchemeTranslatorWrapper
{
public static function initPath($url) {
public static function applyInitPathHook($url) {
$urlParts = AJXP_Utils::safeParseUrl($url);

$repository = ConfService::getRepositoryById($urlParts["host"]);
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/Stream/PathWrapper.php
Expand Up @@ -17,7 +17,7 @@

class PathWrapper extends AJXP_SchemeTranslatorWrapper
{
public static function initPath($url)
public static function applyInitPathHook($url)
{
$params = [];
$parts = AJXP_Utils::safeParseUrl($url);
Expand Down

0 comments on commit cb070ac

Please sign in to comment.