Cleaned up PRs

This commit is contained in:
Chris Kankiewicz
2015-08-06 14:32:52 -07:00
parent 9352c1dbda
commit 51e18d25ec
3 changed files with 9 additions and 9 deletions

View File

@@ -208,8 +208,8 @@ class DirectoryLister {
* @return boolean Returns true if in config is enabled open links in another window, false if not
* @access public
*/
public function determineOpenLinksAnotherWindow() {
return $this->_config['open_links_another_window'];
public function externalLinksNewWindow() {
return $this->_config['external_links_new_window'];
}
@@ -695,7 +695,7 @@ class DirectoryLister {
protected function _getAppUrl() {
// Get the server protocol
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']!=="off") {
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
$protocol = 'https://';
} else {
$protocol = 'http://';

View File

@@ -3,11 +3,11 @@
return array(
// Basic settings
'hide_dot_files' => true,
'list_folders_first' => true,
'list_sort_order' => 'natcasesort',
'theme_name' => 'bootstrap',
'open_links_another_window' => true,
'hide_dot_files' => true,
'list_folders_first' => true,
'list_sort_order' => 'natcasesort',
'theme_name' => 'bootstrap',
'external_links_new_window' => true,
// Hidden files
'hidden_files' => array(

View File

@@ -110,7 +110,7 @@
<?php if ($lister->containsIndex($fileInfo['file_path'])): ?>
<a href="<?php echo $fileInfo['file_path']; ?>" class="web-link-button" <?php if($lister->determineOpenLinksAnotherWindow()) echo 'target="_blank"'?> >
<a href="<?php echo $fileInfo['file_path']; ?>" class="web-link-button" <?php if($lister->externalLinksNewWindow()): ?>target="_blank"<?php endif; ?>>
<i class="fa fa-external-link"></i>
</a>