From 8feec45f3f9e39b0a8e57e6699daa973fbb2b2aa Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 14 Jul 2004 14:52:36 +0000 Subject: [PATCH] Use push instead of unshift to add the rule. --- modules/setext.pl | 9 ++------- modules/subscriberc.pl | 5 ++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/modules/setext.pl b/modules/setext.pl index 4bc598eb..e8106eb8 100644 --- a/modules/setext.pl +++ b/modules/setext.pl @@ -16,14 +16,9 @@ # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA -$ModulesDescription .= '

$Id: setext.pl,v 1.4 2004/06/28 23:38:11 as Exp $

'; +$ModulesDescription .= '

$Id: setext.pl,v 1.5 2004/07/14 14:52:36 as Exp $

'; -# Since the title rule applies to plain words, it will interfere with -# the 'Link All Words' extension. Therefore, we don't push the new -# rule onto the end of the list, we unshift it to the front of the -# list! - -unshift(@MyRules, \&SeTextRule); +push(@MyRules, \&SeTextRule); # The trickiest part is the first rule. It finds titles like the following: # diff --git a/modules/subscriberc.pl b/modules/subscriberc.pl index 6f1e66fd..0b0e2132 100644 --- a/modules/subscriberc.pl +++ b/modules/subscriberc.pl @@ -16,10 +16,9 @@ # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA -$ModulesDescription .= '

$Id: subscriberc.pl,v 1.2 2004/07/14 13:00:04 as Exp $

'; +$ModulesDescription .= '

$Id: subscriberc.pl,v 1.3 2004/07/14 14:54:32 as Exp $

'; -# put at the front of the list because it conflicts with link-all-words -unshift(@MyRules, \&SubscribedRecentChangesRule); +push(@MyRules, \&SubscribedRecentChangesRule); sub SubscribedRecentChangesRule { if ($bol) {