Skip to content

Commit

Permalink
tools/rebuild: show currently rebuilded themes
Browse files Browse the repository at this point in the history
  • Loading branch information
czaks committed Feb 26, 2015
1 parent a550c63 commit 0ab8890
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions inc/functions.php
Expand Up @@ -355,8 +355,15 @@ function rebuildThemes($action, $boardname = false) {
init_locale($config['locale'], $error);
}

if (PHP_SAPI === 'cli') {
echo "Rebuilding theme ".$theme['theme']."... ";
}

rebuildTheme($theme['theme'], $action, $boardname);

if (PHP_SAPI === 'cli') {
echo "done\n";
}
}

// Restore them again
Expand Down Expand Up @@ -583,8 +590,8 @@ function file_write($path, $data, $simple = false, $skip_purge = false) {
if ($bytes & ~0x3ff) { // if ($bytes >= 1024)
if (file_put_contents($gzpath, gzencode($data), $simple ? 0 : LOCK_EX) === false)
error("Unable to write to file: $gzpath");
if (!touch($gzpath, filemtime($path), fileatime($path)))
error("Unable to touch file: $gzpath");
//if (!touch($gzpath, filemtime($path), fileatime($path)))
// error("Unable to touch file: $gzpath");
}
else {
@unlink($gzpath);
Expand Down

0 comments on commit 0ab8890

Please sign in to comment.