Index: trunk/extensions/Lingo/LingoBasicBackend.php |
— | — | @@ -56,6 +56,8 @@ |
57 | 57 | */ |
58 | 58 | public function next() { |
59 | 59 | |
| 60 | + wfProfileIn( __METHOD__ ); |
| 61 | + |
60 | 62 | $ret = null; |
61 | 63 | static $term = null; |
62 | 64 | static $definition = null; |
— | — | @@ -90,6 +92,8 @@ |
91 | 93 | |
92 | 94 | } |
93 | 95 | |
| 96 | + wfProfileOut( __METHOD__ ); |
| 97 | + |
94 | 98 | return $ret; |
95 | 99 | } |
96 | 100 | |
Index: trunk/extensions/Lingo/LingoElement.php |
— | — | @@ -48,6 +48,8 @@ |
49 | 49 | |
50 | 50 | global $wgexLingoDisplayOnce; |
51 | 51 | |
| 52 | + wfProfileIn( __METHOD__ ); |
| 53 | + |
52 | 54 | // return textnode if |
53 | 55 | if ( $wgexLingoDisplayOnce && $this->mHasBeenDisplayed ) { |
54 | 56 | return $doc->createTextNode($this->mTerm); |
— | — | @@ -75,7 +77,7 @@ |
76 | 78 | |
77 | 79 | foreach ( $this->mDefinitions as $definition ) { |
78 | 80 | wfSuppressWarnings(); |
79 | | - $element = $doc->createElement( 'span', htmlentities( $definition[self::ELEMENT_DEFINITION], ENT_COMPAT, 'UTF-8' ) . ' ' ); |
| 81 | + $element = $doc->createElement( 'span', htmlentities( $definition[self::ELEMENT_DEFINITION], ENT_COMPAT, 'UTF-8' ) ); |
80 | 82 | wfRestoreWarnings(); |
81 | 83 | if ( $definition[self::ELEMENT_LINK] ) { |
82 | 84 | $linkedTitle = Title::newFromText( $definition[self::ELEMENT_LINK] ); |
— | — | @@ -97,6 +99,8 @@ |
98 | 100 | $this->mHasBeenDisplayed = true; |
99 | 101 | } |
100 | 102 | |
| 103 | + wfProfileOut( __METHOD__ ); |
| 104 | + |
101 | 105 | return $this->mFullDefinition->cloneNode( true ); |
102 | 106 | } |
103 | 107 | |