mirror of
https://github.com/getgrav/grav.git
synced 2026-02-01 12:20:22 +01:00
removed unused method for now
This commit is contained in:
@@ -87,22 +87,15 @@ class Language
|
||||
return $uri;
|
||||
}
|
||||
|
||||
public function setValidPageExtensions($extensions)
|
||||
{
|
||||
$this->page_extensions = (array) $extensions;
|
||||
}
|
||||
|
||||
public function getValidPageExtensions()
|
||||
{
|
||||
if (empty($this->page_extensions)) {
|
||||
|
||||
if ($this->enabled()) {
|
||||
$valid_lang_extensions = [];
|
||||
foreach ($this->languages as $lang) {
|
||||
$valid_lang_extensions[] = '.'.$lang.CONTENT_EXT;
|
||||
}
|
||||
|
||||
|
||||
if ($this->active) {
|
||||
$active_extension = '.'.$this->active.CONTENT_EXT;
|
||||
$key = array_search($active_extension, $valid_lang_extensions);
|
||||
|
||||
Reference in New Issue
Block a user