Permalink
Browse files

Update via Diagnostics

wording needed
  • Loading branch information...
bloatware committed Dec 7, 2017
1 parent 427203a commit 72d0450c3cb3cec31665ce7ba0be28138d004da9
Showing with 12 additions and 8 deletions.
  1. +1 −1 textpattern/index.php
  2. +5 −7 textpattern/publish/taghandlers.php
  3. +6 −0 textpattern/update/_update.php
View
@@ -191,7 +191,7 @@
$step = trim(gps('step'));
$app_mode = trim(gps('app_mode'));
if (empty($_POST) && $app_mode !== 'async'
if ($app_mode !== 'async'
&& (!$dbversion || ($dbversion != $thisversion) || $txp_is_dev)
) {
define('TXP_UPDATE', 1);
@@ -4824,20 +4824,18 @@ function file_download_description($atts)
function hide($atts = array(), $thing = null)
{
if (empty($atts)) {
if (!isset($atts['process'])) {
return '';
}
global $pretext;
extract(lAtts(array('process' => null), $atts));
if (is_numeric($process)) {
if (intval($process) > $pretext['secondpass'] + 1) {
return postpone_process($process);
} else {
return $process ? parse($thing) : '';
}
if (!$process) {
return $pretext['secondpass'] < get_pref('secondpass', 1) ? postpone_process() : $thing;
} elseif (is_numeric($process)) {
return $process > $pretext['secondpass'] + 1 ? postpone_process($process) : parse($thing);
} elseif ($process) {
parse($thing);
}
@@ -64,6 +64,12 @@ function newest_file()
if ($dbversion == $dbversion_target ||
($txp_is_dev && (newest_file() <= $dbupdatetime))) {
return;
} elseif ($event != 'diag') {
script_js(<<<EOS
textpattern.Console.addMessage(["A new Textpattern version ($thisversion) is ready to be installed. Please visit <a href=\"?event=diag\"><b>Diagnostics</b></a> to install.", 2])
EOS
, false);
return;
}
assert_system_requirements();

0 comments on commit 72d0450

Please sign in to comment.