Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ncp-web/index.php')
-rw-r--r--ncp-web/index.php22
1 files changed, 12 insertions, 10 deletions
diff --git a/ncp-web/index.php b/ncp-web/index.php
index ba62ae56..85bea26d 100644
--- a/ncp-web/index.php
+++ b/ncp-web/index.php
@@ -42,16 +42,18 @@
<div id="nojavascript"> <div>This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">enable JavaScript</a> and reload the page. </div> </div>
</noscript>
<div id="notification-container">
- <div id="notification">
- <div class="row type-error closeable">
- <?php
- exec( "ncp-test-updates" , $output, $ret );
- if ( $ret == 0 )
- echo "version " . file_get_contents( "/var/run/.ncp-latest-version" ) . "is available";
- ?>
- <a class="action close icon-close" href="#" alt="Dismiss"></a>
- </div>
- </div>
+ <?php
+ exec( "ncp-test-updates" , $output, $ret );
+ if ( $ret == 0 )
+ {
+ echo '<div id="notification">';
+ echo '<div class="row type-error closeable">';
+ echo "version " . file_get_contents( "/var/run/.ncp-latest-version" ) . " is available";
+ echo '<a class="action close icon-close" href="#" alt="Dismiss"></a>';
+ echo '</div>';
+ echo '</div>';
+ }
+ ?>
</div>
<header role="banner"><div id="header">