Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Only show the root page languages in the meta wizard (see #7112)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Nov 20, 2014
1 parent 61f05af commit 78cd1bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contao/widgets/MetaWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public function generate()
$return = '';
$taken = array();

$this->import('Database');

// Only show the root page languages (see #7112)
$objRootLangs = $this->Database->query("SELECT language FROM tl_page WHERE type='root'");
$languages = array_intersect_key($languages, array_flip($objRootLangs->fetchEach('language')));

// Add the existing entries
if (!empty($this->varValue))
{
Expand Down

0 comments on commit 78cd1bb

Please sign in to comment.