Corrected capitalization on admin menu and added recaptcha overload to use recaptcha in the ecard form.
This commit is contained in:
parent
f2739d28f7
commit
22ac986ab0
1
modules/ecard/helpers/MY_recaptcha_event.php
Normal file
1
modules/ecard/helpers/MY_recaptcha_event.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php defined("SYSPATH") or die("No direct script access.");
/**
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2010 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class recaptcha_event extends recaptcha_event_Core {
static function ecard_send_form($form) {
if (module::get_var("recaptcha", "public_key")) {
$form->send_ecard->recaptcha("recaptcha")->label("")->id("g-recaptcha");
}
}
}
|
@ -22,7 +22,7 @@ class ecard_event_Core {
|
|||||||
$menu->get("settings_menu")
|
$menu->get("settings_menu")
|
||||||
->append(Menu::factory("link")
|
->append(Menu::factory("link")
|
||||||
->id("ecard")
|
->id("ecard")
|
||||||
->label(t("eCard Settings"))
|
->label(t("eCard settings"))
|
||||||
->url(url::site("admin/ecard")));
|
->url(url::site("admin/ecard")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user