Skip to content

Commit

Permalink
dev/core#4411: follow up PR of the language pr, this cleans up an unu…
Browse files Browse the repository at this point in the history
…sed function
  • Loading branch information
jaapjansma committed Dec 4, 2023
1 parent 861d321 commit 3a207c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions CRM/Utils/System/Standalone.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,18 +481,6 @@ public function setMessage($message) {
CRM_Core_Session::setStatus('', $message, 'info');
}

/**
* Function to return current language.
*
* @return string
*/
public function getCurrentLanguage() {
if ($this->missingStandaloneExtension()) {
return NULL;
}
return Security::singleton()->getCurrentLanguage();
}

/**
* I don't know why this needs to be here? Does it even?
*
Expand Down
6 changes: 0 additions & 6 deletions ext/standaloneusers/Civi/Standalone/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@ public function isUserLoggedIn(): bool {
return !empty($this->getLoggedInUfID());
}

public function getCurrentLanguage() {
// @todo
\Civi::log()->debug('CRM_Utils_System_Standalone::getCurrentLanguage: not implemented');
return NULL;
}

/**
* This is the (perhaps temporary location for) the implementation of CRM_Utils_System_Standalone method.
*/
Expand Down

0 comments on commit 3a207c4

Please sign in to comment.