Merge pull request #610 from anaggh/master

Fix static pages plugin
This commit is contained in:
Diego Najar 2018-01-15 23:29:20 +01:00 committed by GitHub
commit ca3ed6d268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ class pluginStaticPages extends Plugin {
$html .= '<div>';
$html .= '<label>'.$Language->get('Home link').'</label>';
$html .= '<select name="homeLink">';
$html .= '<option value="true" '.($this->getValue('homeLink')?'checked':'').'>Enabled</option>';
$html .= '<option value="false" '.($this->getValue('homeLink')?'checked':'').'>Disabled</option>';
$html .= '<option value="true" '.($this->getValue('homeLink')?'selected':'').'>Enabled</option>';
$html .= '<option value="false" '.(!$this->getValue('homeLink')?'selected':'').'>Disabled</option>';
$html .= '</select>';
$html .= '<span class="tip">'.$Language->get('Show the home link on the sidebar').'</span>';
$html .= '</div>';