소스 검색

Merge pull request #36780 from nextcloud/bugfix/noid/console-error-share-auth

Julius Härtl 1 년 전
부모
커밋
95eeba83b6
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 1
      core/js/publicshareauth.js
  2. 1 2
      lib/private/Template/CSSResourceLocator.php

+ 3 - 1
core/js/publicshareauth.js

@@ -47,6 +47,8 @@ document.addEventListener('DOMContentLoaded', function() {
 
 	// Adds functionality to the request password button
 	var passwordRequestButton = document.getElementById('request-password-button-not-talk');
-	passwordRequestButton.addEventListener('click', showEmailAddressPromptForm);
+	if (passwordRequestButton) {
+		passwordRequestButton.addEventListener('click', showEmailAddressPromptForm);
+	}
 
 });

+ 1 - 2
lib/private/Template/CSSResourceLocator.php

@@ -43,8 +43,7 @@ class CSSResourceLocator extends ResourceLocator {
 	 */
 	public function doFind($style) {
 		$app = substr($style, 0, strpos($style, '/'));
-		if (strpos($style, '3rdparty') === 0
-			&& $this->appendIfExist($this->serverroot, $style.'.css')
+		if ($this->appendIfExist($this->serverroot, $style.'.css')
 			|| $this->appendIfExist($this->serverroot, 'core/'.$style.'.css')
 		) {
 			return;