Use push instead of unshift to add the rule.

This commit is contained in:
Alex Schroeder
2004-07-14 14:52:36 +00:00
parent bfb3a4c2e2
commit 8feec45f3f
2 changed files with 4 additions and 10 deletions

View File

@@ -16,14 +16,9 @@
# 59 Temple Place, Suite 330
# Boston, MA 02111-1307 USA
$ModulesDescription .= '<p>$Id: setext.pl,v 1.4 2004/06/28 23:38:11 as Exp $</p>';
$ModulesDescription .= '<p>$Id: setext.pl,v 1.5 2004/07/14 14:52:36 as Exp $</p>';
# 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:
#

View File

@@ -16,10 +16,9 @@
# 59 Temple Place, Suite 330
# Boston, MA 02111-1307 USA
$ModulesDescription .= '<p>$Id: subscriberc.pl,v 1.2 2004/07/14 13:00:04 as Exp $</p>';
$ModulesDescription .= '<p>$Id: subscriberc.pl,v 1.3 2004/07/14 14:54:32 as Exp $</p>';
# put at the front of the list because it conflicts with link-all-words
unshift(@MyRules, \&SubscribedRecentChangesRule);
push(@MyRules, \&SubscribedRecentChangesRule);
sub SubscribedRecentChangesRule {
if ($bol) {