From 36c299d22aa9eb1f4bcff1632e779dda9619c25d Mon Sep 17 00:00:00 2001 From: Jens Schuppe Date: Mon, 3 Dec 2018 09:57:56 +0100 Subject: [PATCH] Fix case for API action names --- README.md | 4 ++-- .../{EndRecurring.php => Endrecurring.php} | 12 ++++++------ l10n/de_DE/LC_MESSAGES/twingle.mo | Bin 6189 -> 6337 bytes l10n/de_DE/LC_MESSAGES/twingle.po | 10 +++++----- l10n/pot/twingle.pot | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) rename api/v3/TwingleDonation/{EndRecurring.php => Endrecurring.php} (91%) diff --git a/README.md b/README.md index 93cf3f2..400ab86 100644 --- a/README.md +++ b/README.md @@ -66,11 +66,11 @@ the action does. In the meantime, refer to ### End recurring donation - Entity: `TwingleDonation` -- Action: `EndRecurring` +- Action: `Endrecurring` *This section is to be completed: Add parameters documentation and describe what the action does. In the meantime, refer to -[the code](https://github.com/systopia/de.systopia.twingle/blob/master/api/v3/TwingleDonation/EndRecurring.php)* +[the code](https://github.com/systopia/de.systopia.twingle/blob/master/api/v3/TwingleDonation/Endrecurring.php)* ### Cancel donation diff --git a/api/v3/TwingleDonation/EndRecurring.php b/api/v3/TwingleDonation/Endrecurring.php similarity index 91% rename from api/v3/TwingleDonation/EndRecurring.php rename to api/v3/TwingleDonation/Endrecurring.php index cf58165..148d02c 100644 --- a/api/v3/TwingleDonation/EndRecurring.php +++ b/api/v3/TwingleDonation/Endrecurring.php @@ -16,7 +16,7 @@ use CRM_Twingle_ExtensionUtil as E; /** - * TwingleDonation.EndRecurring API specification (optional) + * TwingleDonation.Endrecurring API specification (optional) * This is used for documentation and validation. * * @param array $params description of fields supported by this API call @@ -25,7 +25,7 @@ use CRM_Twingle_ExtensionUtil as E; * * @see http://wiki.civicrm.org/confluence/display/CRMDOC/API+Architecture+Standards */ -function _civicrm_api3_twingle_donation_EndRecurring_spec(&$params) { +function _civicrm_api3_twingle_donation_endrecurring_spec(&$params) { $params['project_id'] = array( 'name' => 'project_id', 'title' => 'Project ID', @@ -50,17 +50,17 @@ function _civicrm_api3_twingle_donation_EndRecurring_spec(&$params) { } /** - * TwingleDonation.EndRecurring API + * TwingleDonation.Endrecurring API * * @param array $params * @return array API result descriptor * @see civicrm_api3_create_success * @see civicrm_api3_create_error */ -function civicrm_api3_twingle_donation_EndRecurring($params) { +function civicrm_api3_twingle_donation_endrecurring($params) { // Log call if debugging is enabled within civicrm.settings.php. if (defined('TWINGLE_API_LOGGING') && TWINGLE_API_LOGGING) { - CRM_Core_Error::debug_log_message('TwingleDonation.EndRecurring: ' . json_encode($params, JSON_PRETTY_PRINT)); + CRM_Core_Error::debug_log_message('TwingleDonation.Endrecurring: ' . json_encode($params, JSON_PRETTY_PRINT)); } try { @@ -90,7 +90,7 @@ function civicrm_api3_twingle_donation_EndRecurring($params) { if (!CRM_Sepa_BAO_SEPAMandate::terminateMandate( $mandate_id, $end_date, - E::ts('Mandate closed by TwingleDonation.EndRecurring API call') + E::ts('Mandate closed by TwingleDonation.Endrecurring API call') )) { throw new CiviCRM_API3_Exception( E::ts('Could not terminate SEPA mandate'), diff --git a/l10n/de_DE/LC_MESSAGES/twingle.mo b/l10n/de_DE/LC_MESSAGES/twingle.mo index 552cde2458510091ae754f27ba8238fe230cafbf..831829b27dd23f27893e66bac0d000323a16189b 100644 GIT binary patch delta 804 zcmY+CyG}wu5QcZ*fN(TXkc%;1iQy<(aEXc9KxbhEu`{tXmiPkHlqdTfR8$s(SX%N3 zHnzTk-?EcQNC@-o%J~IA#5h(%7PPNKL>YO$3MGa%kQ-&1 zeuQ0Z2FZq?%W%P^nf0LTLWDrI5QF3?+$z(Xh&)O>g*enx>Oc+ByVz%}EDMr*5D(); zLOG?rQhS41%;{JEg6;aq*>VA%gd~U=d@*Pc$W61S{xvF^1&t*3nO(mIYm_k|Spg)% zHlkj3o=x~Z6>RLPQF80OV@@sX1S?-Hbc~1YkcaX?WYP delta 619 zcmXZa-%C?r7{Kx8Y_D^!Ms3cmMHWTvxS_Byyr?ePoflrUKcGAD+P@%1L{UMk*IlSL zPP}k#Dl!~Ii3Fhx2`{4PhZH1cC`ot|T1nrh1&8xF&vVZEJkNX1d6Ah*n@?d=D*AJM zK@qv*6Y*maLpYA-u!do5;x*hX7TnCkc9D|=6G&cWFo6rGi{GNbZ+IEM7kAu?k0_rc zSi;lz83XtOwa71f)p6sGJ4AYk8h8e`Q0Mz?3yvEqvEVFG8T0tut~hRH>_lsv3SJ`H zK#IzHD#MekuS*PtyN90Y=PJ0sZ+NoC2Wz;>c zVh_HvdmcAF&yKX!21fBC>T5f&S#P#WH!#YgL7c)Y?%RSlmb}M9I@%=ivZRV_SjQXq z6w`QUUwLEk`^