Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Increase readability #741

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
simplifying $isMac attribution, it doesn't need a ternary operator
  • Loading branch information
rotelok committed Jun 16, 2018
commit fe3683a91ba4f919c8b01c25c5be6778dca4752c
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
}

$isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false;
$isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh") > -1;
?>
<!DOCTYPE html>
<html onMouseDown="top.ICEcoder.mouseDown=true; top.ICEcoder.resetAutoLogoutTimer();" onMouseUp="top.ICEcoder.mouseDown=false; top.ICEcoder.resetAutoLogoutTimer(); top.ICEcoder.mouseDownInCM=false; if (!top.ICEcoder.overCloseLink) {top.ICEcoder.tabDragEnd()}" onMouseMove="if(top.ICEcoder) {top.ICEcoder.getMouseXY(event,'top'); top.ICEcoder.resetAutoLogoutTimer(); top.ICEcoder.canResizeFilesW()}" onMouseWheel="top.ICEcoder.resetAutoLogoutTimer(); if (top.ICEcoder.getcMInstance() && !top.ICEcoder.getcMInstance().hasFocus() && !top.ICEcoder.getcMdiffInstance().hasFocus()) {event.wheelDelta > 0 ? top.ICEcoder.nextTab() : top.ICEcoder.previousTab();}">
Expand Down
4 changes: 2 additions & 2 deletions lib/help.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<h1 id="title"><?php echo $t['shortcuts'];?></h1>

<?php $isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh")>-1 ? true : false;?>
<?php $isMac = strpos($_SERVER['HTTP_USER_AGENT'], "Macintosh") > -1;?>
<div style="display: inline-block; width: 385px; margin-right: 20px">
<h2><?php echo $t['Within document'];?></h2>
<!-- This can only be CTRL+space as Cmd+space is a reserved apple shortcut -->
Expand Down Expand Up @@ -78,4 +78,4 @@

</body>

</html>
</html>