Permalink
Browse files

Unused codes and remove die()

  • Loading branch information...
1 parent 4b3658b commit 9d97eb42e00564247bbea8166780b34cdbcfb3f6 @cdujeu cdujeu committed May 27, 2016
@@ -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);
}
/**
@@ -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"]);
}
}
@@ -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"];

0 comments on commit 9d97eb4

Please sign in to comment.