Skip to content

Commit 156f2dc

Browse files
committed
Fixed PHP warnings
1 parent fc9bb32 commit 156f2dc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/doc/inc/menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ function output_menu(&$menu = null)
6868
{
6969
if (isset($item['items']))
7070
{
71-
print("<li>${item['text']}</li>\n");
71+
print("<li>{$item['text']}</li>\n");
7272
output_menu($item['items']);
7373
}
7474
else
7575
{
7676
$path = (strlen($item['path']) > 0) ? $item['path'] . '/' : '';
77-
print("<li><a href=\"html/${path}${item['id']}.html\">${item['text']}</a></li>\n");
77+
print("<li><a href=\"html/{$path}{$item['id']}.html\">{$item['text']}</a></li>\n");
7878
}
7979
}
8080
print "</ul>\n";

src/doc/inc/plugins.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function plugin_header()
4141
$full_name = htmlspecialchars("{$PACKAGE['short']} {$plugin['description']} ({$plugin['acronym']})");
4242
$author = htmlspecialchars($plugin['author']);
4343

44-
echo "<img class=\"plugin\" src=\"${DOCROOT}img/plugins/{$plugin['id']}.png\" alt=\"{$plugin['name']}\">\n";
44+
echo "<img class=\"plugin\" src=\"{$DOCROOT}img/plugins/{$plugin['id']}.png\" alt=\"{$plugin['name']}\">\n";
4545
echo "<p><b>Detailed:&nbsp;</b>{$full_name}</p>\n";
4646
echo "<p><b>Formats:&nbsp;</b>" . implode(',&nbsp;', $fmt) . "</p>\n";
4747
echo "<p><b>Categories:&nbsp;</b>" . implode(',&nbsp;', $plugin['groups']) . "</p>\n";
@@ -54,7 +54,7 @@ function plugin_header()
5454
function out_image($id, $alt)
5555
{
5656
global $DOCROOT;
57-
echo "<img src=\"${DOCROOT}/img/{$id}.png\" alt=\"{$alt}\">\n";
57+
echo "<img src=\"{$DOCROOT}/img/{$id}.png\" alt=\"{$alt}\">\n";
5858
}
5959

6060
function plugin_ref($id)
@@ -65,7 +65,7 @@ function plugin_ref($id)
6565
return;
6666

6767
$header = htmlspecialchars("{$PACKAGE['short']} {$page['text']}");
68-
print("<b><a href=\"${DOCROOT}html/plugins/${page['id']}.html\">{$header}</a></b>");
68+
print("<b><a href=\"{$DOCROOT}html/plugins/${page['id']}.html\">{$header}</a></b>");
6969
}
7070

7171
?>

src/doc/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<?php
6262
if ($MENUITEM['parent'] != 'plugins')
6363
echo '<h1>' . htmlspecialchars($HEADER) . '</h1>';
64-
require("./manuals/${MENUITEM['path']}/${FILENAME}.php");
64+
require("./manuals/{$MENUITEM['path']}/{$FILENAME}.php");
6565
?>
6666
</div>
6767

0 commit comments

Comments
 (0)