Skip to content

Commit

Permalink
fixed typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Feb 5, 2017
1 parent d2dc1fa commit 4cd2074
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _test/tests/inc/common_inlineSVG.test.php
Expand Up @@ -14,15 +14,15 @@ function test_success() {
'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));
}

/**
* embed should fail because of the file size limit
*/
function test_fail() {
$file = mediaFN('wiki:test.svg');
$this->assertFalse(inlinSVG($file, 100));
$this->assertFalse(inlineSVG($file, 100));
}

}
2 changes: 1 addition & 1 deletion inc/Ui/Admin.php
Expand Up @@ -119,7 +119,7 @@ protected function showMenuItem($item) {
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'];
Expand Down
2 changes: 1 addition & 1 deletion inc/common.php
Expand Up @@ -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;
Expand Down

0 comments on commit 4cd2074

Please sign in to comment.