Commit Graph

1151 Commits (3ce836e2e205cc4dc74b073f43c9e47b1fb4fb54)

Author SHA1 Message Date
Dries Buytaert 013b73e6ec - Patch #30122 by m3verick: changed include_once()'s to include "./$file"
for performance's sake.
2005-09-08 19:19:01 +00:00
Dries Buytaert 3b1e763d03 - Patch #30423 by Crell: added support for table <captions>.
TODO: look into http://drupal.org/node/28777?
2005-09-06 20:32:53 +00:00
Dries Buytaert d7139b85db - Bug #30390: fixed parse error. Alternative fix. 2005-09-06 19:00:55 +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 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 34544d4dc0 - Unrolled patch #29103: always encode apostrophes. 2005-08-28 16:19:24 +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 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 8dd4b46351 - Removed some debug code. 2005-08-25 20:56:32 +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 6a4e6df36f - Patch #17592 by killes: improved access denied messages. 2005-08-22 20:39:43 +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 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 b14ae54d62 - Patch #7458 by chx: fixed spaces. 2005-08-17 19:14:08 +00:00
Dries Buytaert d6bcdafeed - Patch #7458 by chx: merged the XML-RPC multicall support into xmlrpc() and use lazy-loading for the XML-RPC libraries.(performance improvement). 2005-08-17 15:01:14 +00:00
Steven Wittens e5a8977ac1 - Remove left-over commented out statement. 2005-08-17 01:25:07 +00:00
Dries Buytaert 26fa7c730f - Patch #16216 by nedjo: multiple block regions! 2005-08-16 18:06:18 +00:00
Dries Buytaert 6ef678e447 - Patch #28871 by Malthus: added missing quotes. 2005-08-15 11:47:09 +00:00
Dries Buytaert 30f95a331f - Patch #28861 by Malthus: fixed typo in XML-RPC backend. Missing $.
- Made chx the XML-RPC maintainer.
2005-08-14 22:27:40 +00:00
Dries Buytaert 00d21d5cee - Patch #28826 by chx: make xmlrpc_multicall working. 2005-08-14 09:53:40 +00:00
Dries Buytaert 31741b2c99 - Patch #25522 by Cvbge: _db_query() does not return FALSE in case of errors as stated in documentation. 2005-08-11 13:51:07 +00:00
Dries Buytaert b69b43d1ec - Patch #28482 by Uwe: add CVS $Id$ tags to all source files in Drupal core. This allows admins to know exactly which version of which files they use. In addition I want to use CVS $Id$ tags in my upcoming security.module to check for possible vulnerabilities. That's not possible if some files simply don't have $Id$s.
Note: I also (mostly) unified the tags to use the "// ID" form instead of "/* ID */", but that's more of a cosmetic issue. I'm not sure whether *.txt files and the stuff in themes/ need tags(?).
2005-08-11 12:57:41 +00:00
Dries Buytaert 9dec4430b2 - Patch #27980 by Neil Drumm: removed unused function. 2005-08-10 20:50:14 +00:00
Dries Buytaert 8c92c8d48b - Patch by Thomas: always use db abstraction layer 2005-08-10 20:42:54 +00:00
Steven Wittens 0c8d742283 - #28464: fix XMLRPC array vs. struct type-checking 2005-08-08 18:46:32 +00:00
Steven Wittens 0bf97bed03 - #27853: PHP notices. 2005-08-05 00:49:02 +00:00
Steven Wittens 8660655a9a - #27981: Add media parameter to theme_add_style 2005-08-05 00:22:03 +00:00
Dries Buytaert 7625a4e91a - Patch #27737 by Gerhard: format_name($object) -> theme('username', $object).
Usernames can now be themed; eg. an icon/avatar could be added.

  TODO: update contributed modules + update the migration docs.
2005-08-01 05:14:05 +00:00
Dries Buytaert 0a28c17cac - Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images. 2005-07-31 10:16:12 +00:00
Dries Buytaert 9e6373820a - Patch #27431 by Cvbge: add file size infomation to image_get_info() 2005-07-31 09:57:27 +00:00
Steven Wittens 897aae3e31 - #27846: Clean up dev_query code in db_query() 2005-07-30 18:01:51 +00:00
Steven Wittens c81bbf4aa1 - #24673: Fix deprecated usage of implode 2005-07-30 12:52:54 +00:00
Steven Wittens ab8377f02b - Fix braino in doxygen. 2005-07-29 19:07:17 +00:00
Steven Wittens 39aaf29d5c - Fix braino in doxygen. 2005-07-29 19:05:03 +00:00
Steven Wittens f8163b4fe3 - #11689: Fix locale import location cutting off thingie. 2005-07-29 18:56:58 +00:00
Steven Wittens aa2de74fa2 - #27624, #27614, #27627: dead code 2005-07-29 08:18:20 +00:00
Steven Wittens 3084036576 - #27231: (fix) Pretty db error screens. 2005-07-29 07:49:43 +00:00
Dries Buytaert 4103aada88 - Patch #27645 by Neil: refactor away module_load_all().
"This function is called in one place, so it can be rolled into the calling function. The return value isn't used so we can remove handling of it. This is executed for every non-cached page view, so the smaller code should save a smallish ammount of memory and time."
2005-07-29 07:09:30 +00:00
Steven Wittens 7aa20d30d8 - #27668: Replace deprecated tags/attributes with XHTML/CSS in locale.
- (#15121) Improve string cut-off for locale table
2005-07-29 06:50:10 +00:00
Steven Wittens 354e0c1f83 - #23651: Display referrer info with watchdog messages. 2005-07-29 04:12:19 +00:00
Steven Wittens d9d4b9bdab - #27231: Friendly DB error screens. 2005-07-27 01:58:43 +00:00
Steven Wittens 11a4aba9a6 - #26688: Add mbstring support to Drupal and clear up string handling fuzzies. 2005-07-25 20:40:35 +00:00
Steven Wittens dd2c576599 - #26688: Add mbstring support to Drupal and clear up string handling fuzzies. 2005-07-25 20:38:30 +00:00
Dries Buytaert ba1660168f - Patch #27003 by Neil: use named constants instead of strings 2005-07-23 05:57:27 +00:00
Dries Buytaert 31387c5a77 - Patch #26467 by drumm: make the destination persist across multiple pages
and fixed the node delete form to use a return destination.
2005-07-20 10:48:20 +00:00
Dries Buytaert ed3bf725bb - Patch #26391 by chx: replaced the old XML-RPC library with a smaller/better/working one. 2005-07-13 18:46:15 +00:00