Commit Graph

4747 Commits (3f4d18fafc2718a056be07b9bf3c51ecfa610f33)

Author SHA1 Message Date
Dries Buytaert d7139b85db - Bug #30390: fixed parse error. Alternative fix. 2005-09-06 19:00:55 +00:00
Dries Buytaert 3be71ac514 - Patch #30308 by gordon: fixed broken SQL query. 2005-09-06 18:55:41 +00:00
Dries Buytaert 3ace768e50 - Patch by Rober: better fix for the extract() namespace problem in phptemplate.engine. 2005-09-04 13:52:08 +00:00
Dries Buytaert 0094e99b87 - Patch #28576 by Robrecht Jacques: 'file' is a reserved variable. 2005-09-04 13:13:31 +00:00
Dries Buytaert c13025d232 - Patch #30222, #30219 by Uwe: cosmetic changes to the aggregator pages. 2005-09-02 19:18:14 +00:00
Steven Wittens 69247d7aad - #30128: Call by reference left-overs 2005-09-02 02:11:41 +00:00
Dries Buytaert 436cd01b5f - Patch #9167 by blake7/Uwe: generate RSS feeds for aggregator pages. 2005-09-01 19:50:18 +00:00
Steven Wittens 74e7bcdf7f - Bugfix: throbber styles should not apply without JS 2005-08-31 21:17:26 +00:00
Steven Wittens dee28658af - Reversing animation 2005-08-31 19:00:13 +00:00
Dries Buytaert fabcd8bbfb - Updated CHANGELOG.txt 2005-08-31 18:48:24 +00:00
Dries Buytaert e03ce2f996 - Patch #28483 by Steven: JavaScript enabled uploading.
Comment from Steven: It does this by redirecting the submission of the form to a hidden <iframe> when you click "Attach" (we cannot submit data through Ajax directly because you cannot read file contents from JS for security reasons).  Once the file is submitted, the upload-section of the form is updated.  Things to note:

    * The feature degrades back to the current behaviour without JS.
    * If there are errors with the uploaded file (disallowed type, too big, ...), they are displayed at the top of the file attachments fieldset.
    * Though the hidden-iframe method sounds dirty, it's quite compact and is 100% implemented in .js files. The drupal.js api makes it a snap to use.
    * I included some minor improvements to the Drupal JS API and code.
    * I added an API drupal_call_js() to bridge the PHP/JS gap: it takes a function name and arguments, and outputs a <script> tag. The kicker is that it preserves the structure and type of arguments, so e.g. PHP associative arrays end up as objects in JS.
    * I also included a progressbar widget that I wrote for drumm's ongoing update.php work. It includes Ajax status updating/monitoring, but it is only used as a pure throbber in this patch. But as the code was already written and is going to be used in the near future, I left that part in. It's pretty small ;). If PHP supports ad-hoc upload info in the future like Ruby on Rails, we can implement that in 5 minutes.
2005-08-31 18:37:30 +00:00
Dries Buytaert 3029da00d6 - Patch #29051 by mathias: made the update.php script work when Drupal is installed in a subdirectory. 2005-08-31 17:56:07 +00:00
Dries Buytaert d9d6a6e05c - Patch #7582 by Gerhard: improved node revisions!
All node revisions were stored in a serialized field in the node table and retrieved for _each_ page view although they are rarely needed. We created a separate revisions table which would be in principle identical to the node table, only that it could have several old copies of the same node.  This also allows us to revision-related information, and to provide log entries to non-book pages when a new revision is being created.

TODO:

1. Provide upgrade instructions for node module maintainers!
2. Upgrade modules that implement node types.
3. Provide an upgarde path for revisions.  Dependency on the upgrade system.
2005-08-30 15:22:29 +00:00
Dries Buytaert 7e5d0c947a - Patch #20255 by Cvbge: simplified a query in the throttle.module. Fixes a PostgreSQL compatibility bug too. 2005-08-30 15:04:54 +00:00
Dries Buytaert 246274eb16 - Renamed _node() to _node_info()! We reserve _node for _nodeapi. 2005-08-29 19:58:49 +00:00
Dries Buytaert 75fad91cf5 - Patch #22911 by Cvgbe: fixed table locking in PostgreSQL. You'll have to
use db_lock_table() and db_unlock_tables() for your code to be compatible.
2005-08-29 19:32:55 +00:00
Dries Buytaert 8ae8865abc - Patch #22911 by Cvgbe: fixed table locking in PostgreSQL. You'll have to
use db_lock_table() and db_unlock_tables() for your code to be compatible.
2005-08-29 19:17:17 +00:00
Dries Buytaert 307eefd1ce - Patch #29737 by m3avrck: fixed broken link in upload.module. 2005-08-29 19:01:18 +00:00
Dries Buytaert 5baf463678 - Patch #29669 by Neil: micro-performance improvement for update.php + removed
PHP warning.
2005-08-29 18:48:25 +00:00
Dries Buytaert 21c2885b0e - Patch #29385 by chx: removed remaining "?>"s at the end of some files. 2005-08-28 18:26:20 +00:00
Dries Buytaert 469fa36420 - Patch #29506 by Nedjo: block regions were not initiated for newly enabled themes. 2005-08-28 18:17:47 +00:00
Dries Buytaert 8f71d8990e - Patch #16452 by chx: allow modules to rewrite taxonomy-related SQL queries much
like we do with node-related SQL queries.

  (chx promised to document this, check his documentation as soon it is available.)
2005-08-28 16:30:50 +00:00
Dries Buytaert 34544d4dc0 - Unrolled patch #29103: always encode apostrophes. 2005-08-28 16:19:24 +00:00
Dries Buytaert 8f32c39db2 - Patch #29102 by chx: fixed bug in forum module and tidied up the taxonomy_save_*() functions. 2005-08-28 15:58:52 +00:00
Dries Buytaert c9fc300b1f - Patch #29785 by Chx: multiple node types were broken so we refactored
part of the node system!  If you have a module that implements node
  types, you'll have to udpate its CVS HEAD version.

  We replaced _node_name() and _node_types() by _node().  The new _node()
  hook let's you define one or more node types, including their names.
  The implementation of the _node() hook needs to:

   return array($type1 => array('name' => $name1, 'base' => $base1),
                $type2 => array('name' => $name2, 'base' => $base2));

  where $type is the node type, $name is the human readable name of the type
  and $base is used instead of <hook> for <hook>_load, <hook>_view, etc.

  For example, the story module's node hook looks like this:

    function story_node() {
      return array('story' => array('name' => t('story'), 'base' => 'story'));
    }

  The page module's node hook module like:

    function page_node() {
      return array('page' => array('name' => t('page'), 'base' => 'page'));
    }

  However, more complex node modules like the project module and the
  flexinode module can use the 'base' parameter to specify a different base.

  The project module implements two node types, proejcts and issues, so it
  can do:

    function project_node() {
      return array(
       array('project_project' => array('name' => t('project'), 'base' => 'project'),
       array('project_issue' => array('name' => t('issue'), 'base' => 'project_issue'));
    }

  In the flexinode module's case there can only one base ...

  This hook will simplify the CCK, and will make it easy (or easier) to merge
  the story and page module.

  In addition, node_list() became node_get_types().  In addition, we created
  the following functions: node_get_name($type) and node_get_base($type).
2005-08-28 15:29:34 +00:00
Dries Buytaert 494e5ab97c - Renamed 'user comments' to 'comment options' for consistency.' 2005-08-28 15:16:58 +00:00
Dries Buytaert 6ebe50b536 - Made Cvgbe the PostgreSQL maintainer. 2005-08-28 15:13:35 +00:00
Dries Buytaert b5573842b8 - Patch #29593 by tostinni: fixed display of title on admin/settings/content-type/ pages. 2005-08-25 21:22:00 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert afeff189b8 - Bug #22911: PostgreSQL doesn't like "LOCK TABLES", but does like "LOCK TABLE". MySQL likes both. 2005-08-25 21:11:52 +00:00
Dries Buytaert 347ac3b08f - Patch #29597 by Neil: removing some Drupal 4.2 and Drupal 4.3 left-overs. 2005-08-25 21:03:53 +00:00
Dries Buytaert 8dd4b46351 - Removed some debug code. 2005-08-25 20:56:32 +00:00
Dries Buytaert 078c99ca5d - Patch #21658 by Uwe: fixed broken link in help text. 2005-08-24 15:40:43 +00:00
Dries Buytaert 5aa2bad948 - Patch #29283: bluemarine mistakenly loads home page every time. 2005-08-24 15:28:53 +00:00
Dries Buytaert 789dd294ff - Modified patch #22637: added OPML export for aggregator categories. 2005-08-23 05:45:08 +00:00
Dries Buytaert 405cb49a0b - Patch #25084 by Uwe: fixed code comments of error_handler(). 2005-08-23 05:19:44 +00:00
Dries Buytaert caf65e3953 - Patch #13941 by Promotheus6: Atom feeds have a CONTENT and/or SUMMARY tag instead of a DESCRIPTION tag. Currently, if both tags are present the aggregator appends the content of both fields to replace the content of the DESCRIPTION tag. 2005-08-23 05:16:50 +00:00
Dries Buytaert 6a4e6df36f - Patch #17592 by killes: improved access denied messages. 2005-08-22 20:39:43 +00:00
Dries Buytaert 22a98528b7 - Patch #29075 by fago: made the collapsible fieldset icons work in IE 5. 2005-08-22 20:29:00 +00:00
Dries Buytaert 7d9f29aca7 - Patch #28629 by chx: fixed handling of cookies in drupal_http_request(). 2005-08-22 20:24:53 +00:00
Dries Buytaert e0113d6788 - Patch #29275 by Uwe: I'm currently trying to get aggregator.module in shape for being used as a planet-like software for a Planet Drupal. Here's a patch which allows the site admin to specify which HTML tags are stripped from feeds (or not). This is hardcoded in aggregator.module right now, the attached 2-line patch (for HEAD) makes it configurable. 2005-08-22 19:45:42 +00:00
Dries Buytaert e3a92d2914 - Patch #26311 by Ber: no more floating node admin groups.
TODO: simplify the node admin HTML code.
2005-08-22 11:48:58 +00:00
Dries Buytaert 3b8220e6f5 - Patch #29335 by jonbob: shuffled the case-statements around for performance's sake. 2005-08-22 10:11:15 +00:00
Dries Buytaert 75abab2451 - Patch #29274 by Jeremy: the "fuzzy cache" mechanism is supposed to enforce a minimum time before the cache table is flushed. Logical errors in the fuzzy cache implementation are leading to the cache table being flushed more frequently. Configuration is simplified by removing all references to "strict" and "loose" caches. Instead, the cache is either "disabled" or "enabled". Additionally, the site administrator can now configure the "minimum cache lifetime", the minimum amount of time cached data will remain cached. 2005-08-22 05:09:01 +00:00
Dries Buytaert a33b922fcc - Patch #29103 by chx: do not encode apostrophes. 2005-08-19 11:10:35 +00:00
Dries Buytaert 1836d3b365 - Patch #29002 by Neil: list_themes() currently returns all themes, not just enabled themes. This functionality is only used in one place- configuration for disabled themes. These configuration pages can be removed with a usability improvement since you shouldn't be able to configure things which are disabled. Additionally, this allows us to remove some extra logic in system_user(). And it it more consistent with the module API which only lists enabled modules.
list_themes() sorts the results by name. This uses filesort in MySQL since there aren't any indexes. Sorting is not used except in system_user(). This one use can be handled with ksort since it is not often executed (only on the user edit screen when multiple themes are enabled).

And a one line fix to remove a variable in system_user() is in here too.
2005-08-18 22:07:14 +00:00
Dries Buytaert 97bc92f6b9 - Patch #29133 by DriesK: forum vid remains when vocabulary is deleted. Prevents forum topics from getting lost. 2005-08-18 21:53:55 +00:00
Dries Buytaert aa39f5c787 - Patch #29095 by Moshe: fixed parse error in drupal.js. 2005-08-18 05:14:06 +00:00
Dries Buytaert f664d47bcd - Added a note about the 'block regions'. 2005-08-17 20:09:12 +00:00
Dries Buytaert 29d6660149 - Patch #23620 by Robin: don't hard code forms into comment.module. Will be
depricated by form API patch though.  Hopefully helps migration.
2005-08-17 20:07:35 +00:00