Skip to content

Commit

Permalink
Merge branch 'master-2.26'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Feb 18, 2024
2 parents e082b0c + e50fb20 commit 4dc35ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/install.php
Expand Up @@ -139,7 +139,7 @@ function_exists( 'mysqli_stmt_get_result' ),

layout_page_header_begin( 'Administration - Installation' );
# Javascript is only needed to support input of installation options
if( $t_install_state < 2 ) {
if( $t_install_state <= 2 ) {
html_javascript_link( 'install.js' );
}
layout_page_header_end();
Expand Down
6 changes: 6 additions & 0 deletions core.php
Expand Up @@ -137,6 +137,12 @@
exit( 1 );
}

# Do not load Core for dynamic javascript files when MantisBT is not installed
if( isset( $_SERVER['SCRIPT_NAME'] ) && ( 0 < strpos( $_SERVER['SCRIPT_NAME'], 'javascript' ) ) ) {
http_response_code( HTTP_STATUS_NO_CONTENT );
exit;
}

if( !( isset( $_SERVER['SCRIPT_NAME'] ) && ( 0 < strpos( $_SERVER['SCRIPT_NAME'], 'admin' ) ) ) ) {
header( 'Content-Type: text/html' );
# Temporary redirect (307) instead of Found (302) default
Expand Down
14 changes: 14 additions & 0 deletions css/ace-mantis.css
Expand Up @@ -602,6 +602,16 @@ ul.changelog > li, ul.roadmap > li {
border-right-width: 0px;
}

.sidebar:not(.menu-min) {
min-width: 190px;
width: auto;
}

.sidebar.menu-min .nav-list > li > a > .menu-text {
width: max-content;
padding-right: 12px;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
.page-content {
Expand Down Expand Up @@ -643,6 +653,10 @@ ul.changelog > li, ul.roadmap > li {
margin-left: 43px !important;
}

.sidebar:not(.min-width) {
min-width: auto;
}

.sidebar.compact, .sidebar.compact.navbar-collapse {
width: 125px;
}
Expand Down

0 comments on commit 4dc35ad

Please sign in to comment.