Notice: Use of undefined constant FILTER_FORMAT_DEFAULT - assumed 'FILTER_FORMAT_DEFAULT' in quotes_admin_settings() (line 81 of modules/quotes/quotes.admin.inc).
Patch to fix:
--- quotes.admin.inc
+++ quotes.admin.inc
@@ -78,7 +78,7 @@ function quotes_admin_settings($form, $form_state) {
global $user;
$format_list = filter_formats($user);
- $formats = array(FILTER_FORMAT_DEFAULT => '-node format-');
+ $formats = array(filter_fallback_format() '-node format-');
foreach ($format_list as $number => $filter) {
$formats[$number] = $filter->name;
}
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | quotes.patch | 4.94 KB | pillarsdotnet |
| #1 | quotes.admin_.inc_.patch | 472 bytes | pillarsdotnet |
| quotes.admin_.inc_.patch | 469 bytes | pillarsdotnet |
Comments
Comment #1
pillarsdotnet commentedGrrr... Corrected patch.
Comment #2
pillarsdotnet commentedComment #3
TallDavid commentedApplied the patch to a Drupal 7.0-RC3 site which was experiencing the Notice. The patch has resolved the issue on this site.
Note to self: aft.c
Comment #4
ctmattice1 commentedfixed in next dev release
Comment #5
pillarsdotnet commentedcombined patch for the following issues:
#1010094: Notice: Use of undefined constant BLOCK_NO_CACHE
#1004932: Missing argument 3 for quotes_form()
#1011218: Granting "access quotes" permission equivalent to granting "edit all nodes" permission.
#995328: Remove debugging code to avoid fatal "Call to undefined function dpr()"
#1002424: Notice: Use of undefined constant FILTER_FORMAT_DEFAULT - assumed 'FILTER_FORMAT_DEFAULT' in quotes_admin_settings() (line 81 of
#1007050: Main quotes page doesn't work
#1002358: Notice: Undefined variable: updated in quotes_cron() (line 1124 of quotes.module)
Comment #6
pillarsdotnet commentedfixed in CVS