Skip to content

Commit

Permalink
Item12952: correct minor error noticed during debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Aug 28, 2014
1 parent 5626f5b commit 712d00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SmiliesPlugin/lib/Foswiki/Plugins/SmiliesPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ sub _loadSmilies {

$cache{$current}{pattern} = "(";
my $state = 0;
foreach my $line ( split( /\n/, Foswiki::Func::readTopic( $web, $topic ) ) )
{
my ( $meta, $text ) = Foswiki::Func::readTopic( $web, $topic );
foreach my $line ( split( /\n/, $text || '' ) ) {

# | smily | image | description |
if ( $line =~ /^\s*\|\s*(.*?)\s*\|\s*(.*?)\s*\|\s*(.*?)\s*\|\s*$/ ) {
Expand Down

0 comments on commit 712d00e

Please sign in to comment.