forked from github/kensanata.oddmuse
Use push instead of unshift to add the rule.
This commit is contained in:
@@ -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:
|
||||
#
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user