fixed typo in function name

This commit is contained in:
Andreas Gohr 2017-02-05 11:06:20 +01:00
parent d2dc1fa3e7
commit 4cd2074f30
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ class common_embedSVG_test extends DokuWikiTest {
'6.41-3.205 25.59 12.795zM57.59 40.795l6.41 3.205-32 16-32-16 6.41-3.205 25.59 12.795z" '.
'fill="#000000"></path></svg>';
$this->assertEquals($clean, inlinSVG($file));
$this->assertEquals($clean, inlineSVG($file));
}
/**
@ -22,7 +22,7 @@ class common_embedSVG_test extends DokuWikiTest {
*/
function test_fail() {
$file = mediaFN('wiki:test.svg');
$this->assertFalse(inlinSVG($file, 100));
$this->assertFalse(inlineSVG($file, 100));
}
}

View File

@ -119,7 +119,7 @@ class Admin extends Ui {
echo '<li><div class="li">';
echo '<a href="' . wl($ID, 'do=admin&amp;page=' . $item['plugin']) . '">';
echo '<span class="icon">';
echo inlinSVG($item['icon']);
echo inlineSVG($item['icon']);
echo '</span>';
echo '<span class="prompt">';
echo $item['prompt'];

View File

@ -2026,7 +2026,7 @@ function stripsourcemaps(&$text){
* @param int $maxsize maximum allowed size for the SVG to be embedded
* @return string|false the SVG content, false if the file couldn't be loaded
*/
function inlinSVG($file, $maxsize = 2048) {
function inlineSVG($file, $maxsize = 2048) {
$file = trim($file);
if($file === '') return false;
if(!file_exists($file)) return false;