Fixed deprecation warnings and improved compatibility with newer versions.
This commit is contained in:
@@ -23,7 +23,7 @@ class SearchController extends Controller
|
||||
parent::__construct($appName, $request);
|
||||
$this->appName = $appName;
|
||||
$this->uid = $UserId;
|
||||
$this->urlGenerator = \OC::$server->getURLGenerator();
|
||||
$this->urlGenerator = \OC::$server->get(\OCP\IURLGenerator::class);
|
||||
$this->search = new siteSearch();
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user