From 90684e0edd3140e126e6f5f317f8c515b6ab495b Mon Sep 17 00:00:00 2001 From: frog23 Date: Mon, 30 Mar 2015 15:38:47 +0200 Subject: [PATCH 1/2] added $wgCiteShowGroupNames --- Cite.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cite.php b/Cite.php index 04289c1..178851a 100644 --- a/Cite.php +++ b/Cite.php @@ -52,6 +52,11 @@ $wgAllowCiteGroups = true; $wgCiteCacheReferences = false; /** + * Allows users to optionally hide reference group names + */ +$wgCiteShowGroupNames = true; + +/** * Performs the hook registration. * Note that several extensions (and even core!) try to detect if Cite is * installed by looking for wfCite(). -- 1.9.4.msysgit.0 From fe741fd4fa9007cb68e0c1415eab1de7d740a689 Mon Sep 17 00:00:00 2001 From: frog23 Date: Mon, 30 Mar 2015 15:40:47 +0200 Subject: [PATCH 2/2] optionally hide reference group name hide reference group name if $wgCiteShowGroupNames is false --- Cite_body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cite_body.php b/Cite_body.php index dc17416..8f1aea0 100644 --- a/Cite_body.php +++ b/Cite_body.php @@ -925,7 +925,7 @@ class Cite { $this->refKey( $key, $count ), $this->referencesKey( $key . $subkey ), $this->getLinkLabel( $label, $group, - ( ( $group == CITE_DEFAULT_GROUP ) ? '' : "$group " ) . $wgContLang->formatNum( $label ) ) + ( ( $group == CITE_DEFAULT_GROUP || !$wgCiteShowGroupNames ) ? '' : "$group " ) . $wgContLang->formatNum( $label ) ) )->inContentLanguage()->plain() ); } -- 1.9.4.msysgit.0