Skip to content

Commit

Permalink
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDaniel committed Jul 14, 2015
2 parents e8b7ad4 + f0588fa commit 2c82301
Show file tree
Hide file tree
Showing 44 changed files with 238 additions and 420 deletions.
4 changes: 4 additions & 0 deletions modules/div-foo.pl
Expand Up @@ -18,11 +18,15 @@

our (@MyRules);
our ($DivFooPrefix);
our (%RuleOrder);

$DivFooPrefix = 'foo_';

push(@MyRules, \&DivFooRule);

# conflicts with <nowiki> and other such rules by usemod.pl
$RuleOrder{\&DivFooRule} = 200;

sub DivFooRule {
if (m/\G \&lt; ([a-z_-][a-z0-9 _-]+[a-z0-9_-]) \&gt; \s*\n /cgx) {
return CloseHtmlEnvironment('p') . AddHtmlEnvironment('div', 'class="' . join(' ', map {"$DivFooPrefix$_"} split /\s+/, $1) . '"');
Expand Down
2 changes: 1 addition & 1 deletion modules/edit-cluster.pl
Expand Up @@ -49,7 +49,7 @@ sub GetRc {
}
}
$wanted_clusters{$clusterOnly} = $clusterOnly;
@outrc = reverse @outrc if GetParam('newtop', $RecentTop);
@outrc = reverse @outrc;
my @filters;
@filters = SearchTitleAndBody($filterOnly) if $filterOnly;
foreach my $rcline (@outrc) {
Expand Down
2 changes: 0 additions & 2 deletions modules/google-plus-one.pl
Expand Up @@ -16,8 +16,6 @@
# use warnings;
use v5.10;

package OddMuse;

AddModuleDescription('google-plus-one.pl', 'Google Plus One Module');

our ($q, @MyAdminCode, %Action);
Expand Down
1 change: 1 addition & 0 deletions modules/image.pl
Expand Up @@ -118,6 +118,7 @@ sub ImageGetExternalUrl {
} elsif ($UsePathInfo and !$Monolithic) {
$link = $ScriptName . '/' . $link;
} elsif ($Monolithic) {
# if used together with all.pl
$link = '#' . $link;
} else {
$link = $ScriptName . '?' . $link;
Expand Down
2 changes: 0 additions & 2 deletions modules/like.pl
Expand Up @@ -18,8 +18,6 @@
# use warnings;
use v5.10;

package OddMuse;

AddModuleDescription('like.pl', 'Like Button');

our $LikeRegexp = T('====(\d+) persons? liked this===='); # must match all translations
Expand Down
97 changes: 0 additions & 97 deletions modules/plainclusterrc.pl

This file was deleted.

222 changes: 0 additions & 222 deletions modules/slideshow.pl

This file was deleted.

0 comments on commit 2c82301

Please sign in to comment.