|
|
@@ -234,3 +234,40 @@ Index: modules/system/system.module
|
|
|
$items['admin/settings/file-system'] = array(
|
|
|
'title' => 'File system',
|
|
|
'description' => 'Tell Drupal where to store uploaded files and how they are accessed.',
|
|
|
+
|
|
|
+-----------------------------------------------------------------------------
|
|
|
+
|
|
|
+Properly activate Drupal support module in TinyMCE
|
|
|
+
|
|
|
+Index: sites/all/modules/tinymce/plugin_reg.php
|
|
|
+--- sites/all/modules/tinymce/plugin_reg.php.orig 2008-03-27 21:11:17 +0100
|
|
|
++++ sites/all/modules/tinymce/plugin_reg.php 2008-05-02 20:56:56 +0200
|
|
|
+@@ -102,5 +102,9 @@
|
|
|
+ $plugins['zoom'] = array();
|
|
|
+ $plugins['zoom']['theme_advanced_buttons2'] = array('zoom');
|
|
|
+
|
|
|
++$plugins['drupalimage'] = array();
|
|
|
++$plugins['drupalimage']['theme_advanced_buttons1'] = array('drupalimage');
|
|
|
++$plugins['drupalimage']['extended_valid_elements'] = array('img[class|src|border=0|alt|title|width|height|align|name]');
|
|
|
++
|
|
|
+ return $plugins;
|
|
|
+ }
|
|
|
+
|
|
|
+-----------------------------------------------------------------------------
|
|
|
+
|
|
|
+Fix SQL in "remove" functionality of "img_assist" module.
|
|
|
+http://drupal.org/node/250128
|
|
|
+
|
|
|
+Index: sites/all/modules/img_assist/img_assist.module
|
|
|
+--- sites/all/modules/img_assist/img_assist.module.orig 2008-04-06 19:32:33 +0200
|
|
|
++++ sites/all/modules/img_assist/img_assist.module 2008-05-02 21:00:24 +0200
|
|
|
+@@ -1239,7 +1239,7 @@
|
|
|
+ }
|
|
|
+
|
|
|
+ function _img_assist_remove($node, $size) {
|
|
|
+- $result = db_query("SELECT * FROM {files} f INNER JOIN {image} i WHERE f.fid = i.fid AND i.nid = %d AND f.filename = '%s'", $node->nid, $size['key']);
|
|
|
++ $result = db_query("SELECT * FROM {files} f INNER JOIN {image} ON f.fid = i.fid WHERE i.nid = %d AND f.filename = '%s'", $node->nid, $size['key']);
|
|
|
+ while ($file = db_fetch_object($result)) {
|
|
|
+ // Never delete original image.
|
|
|
+ if ($file->filepath != $node->images[IMAGE_ORIGINAL]) {
|
|
|
+
|