Browse Source

Improved performance

Giuseppe Di Terlizzi 9 years ago
parent
commit
2858431a90
1 changed files with 8 additions and 1 deletions
  1. 8 1
      syntax/icon.php

+ 8 - 1
syntax/icon.php

@@ -52,8 +52,15 @@ class syntax_plugin_icons_icon extends DokuWiki_Syntax_Plugin {
      */ 
     public function handle($match, $state, $pos, Doku_Handler $handler) {
 
+        $url   = null;
+        $flags = array();
+        $title = null;
+        $pack  = null;
+        $icon  = null;
+
         $match = substr($match, 2, -2); // strip markup
-        list($match, $title, $title2) = explode('|', $match);
+
+        @list($match, $title, $title2) = explode('|', $match);
 
         if (isset($title2)) $title .= '}}';