Skip to content

Commit

Permalink
#1090: Need the 'small' tag for the printable run sheet. Also a php8 …
Browse files Browse the repository at this point in the history
…fix.
  • Loading branch information
tbar0970 committed Nov 17, 2024
1 parent 3d77d56 commit fce43af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db_objects/service.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ function getInstancesData($params, $logic='OR', $order='')
public function replaceKeywords($text)
{
$matches = Array();
preg_match_all('/%([a-zA-Z0-9#_\/]*)%/', $text, $matches);
preg_match_all('/%([a-zA-Z0-9#_\/]*)%/', (string)$text, $matches);
foreach ($matches[1] as $keyword) {
$text = str_replace('%'.$keyword.'%', $this->getKeywordReplacement($keyword), $text);
}
Expand Down Expand Up @@ -733,7 +733,7 @@ class="table table-bordered table-condensed table-full-width run-sheet no-narrow
$title = str_replace('%title%', $item['title'], $title);
$title = $this->replaceKeywords($title);
echo ents($title);
if ($item['note']) echo '<div class="smallprint"><i>'.nl2br(ents($item['note'])).'</i></div>';
if ($item['note']) echo '<div class="smallprint"><small><i>'.nl2br(ents($item['note'])).'</i></small></div>';
?>
</td>
<td class="narrow"><?php echo ents($item['personnel']); ?></td>
Expand Down

0 comments on commit fce43af

Please sign in to comment.