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

Commit

Permalink
Unused codes and remove die()
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 27, 2016
1 parent 4b3658b commit 9d97eb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/src/Model/ShareLink.php
Expand Up @@ -297,7 +297,7 @@ public function createHiddenUserId($prefix = "", $hasPassword = false){
* @return string
*/
public function createHiddenUserPassword(){
return $userPass = substr(md5(time()), 13, 24);
return substr(md5(time()), 13, 24);
}

/**
Expand Down
5 changes: 4 additions & 1 deletion core/src/plugins/action.share/src/ShareCenter.php
Expand Up @@ -194,7 +194,10 @@ public static function publicRoute($serverBase, $route, $params){

}else{

die("Invalid Arguments");
ConfService::init();
ConfService::start();
$mess = ConfService::getMessages();
ShareCenter::loadMinisite([], null, $mess["share_center.166"]);

}
}
Expand Down
5 changes: 4 additions & 1 deletion core/src/plugins/action.share/src/View/MinisiteRenderer.php
Expand Up @@ -46,9 +46,12 @@ public static function loadMinisite($data, $hash = '', $error = null)
$error = $mess['share_center.164'];
}
$repository = $data["REPOSITORY"];
$confs = [];
PluginsService::getInstance()->initActivePlugins();
$shareCenter = PluginsService::findPlugin("action", "share");
$confs = $shareCenter->getConfigs();
if($shareCenter !== false){
$confs = $shareCenter->getConfigs();
}
$minisiteLogo = "plugins/gui.ajax/PydioLogo250.png";
if(!empty($confs["CUSTOM_MINISITE_LOGO"])){
$logoPath = $confs["CUSTOM_MINISITE_LOGO"];
Expand Down

0 comments on commit 9d97eb4

Please sign in to comment.