diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2004-06-02 18:26:44 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2004-06-02 18:26:44 +0000 |
commit | c3463a22aef32680108e835367247cd5e04d214e (patch) | |
tree | 7c5cb75c6d343e18c9dd15594a2b63e24469945e /includes | |
parent | 3c50b9c26f25dbc5fd41987bf4674415f7d6a9a2 (diff) | |
download | brdo-c3463a22aef32680108e835367247cd5e04d214e.tar.gz brdo-c3463a22aef32680108e835367247cd5e04d214e.tar.bz2 |
- Removing early experimental tab code that slipped in.
- Fixing a copy paste error in file.inc.
- Some double => single quote changes.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 4 | ||||
-rw-r--r-- | includes/common.inc | 27 | ||||
-rw-r--r-- | includes/file.inc | 2 |
3 files changed, 4 insertions, 29 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index a22e629ea..e35189152 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -193,8 +193,8 @@ function referer_uri() { function arg($index) { static $arguments, $q; - if (empty($arguments) || $q != $_GET["q"]) { - $arguments = explode("/", $_GET["q"]); + if (empty($arguments) || $q != $_GET['q']) { + $arguments = explode('/', $_GET['q']); } return $arguments[$index]; diff --git a/includes/common.inc b/includes/common.inc index f4cbac594..f8ee497ca 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -4,7 +4,7 @@ /** * @defgroup common Core functions */ - + /** * @name Page title * @ingroup common @@ -93,31 +93,6 @@ function drupal_get_breadcrumb() { /* @} */ /** - * @name Page tabs - * @ingroup common - * - * Functions to get and set the tabs of the current page. - * @{ - */ - -/** - * @param $tab Array of links to use for tabs - */ -function drupal_set_tab($tab = NULL) { - static $stored_tab = array(); - - if (!is_null($tab)) { - $stored_tab[] = $tab; - } - return $stored_tab; -} - -function drupal_get_tab() { - return drupal_set_tab(); -} -/* @} */ - -/** * @name HTML head contents * @ingroup common * diff --git a/includes/file.inc b/includes/file.inc index 5c6994330..8994ea9d2 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -94,7 +94,7 @@ function file_check_upload($source) { $file->path = $_FILES["edit"]["tmp_name"][$source]; $file->error = $_FILES["edit"]["error"][$source]; $file->size = $_FILES["edit"]["size"][$source]; - $file->source = $_FILES["edit"]["size"][$source]; + $file->source = $_FILES["edit"]["source"][$source]; return $file; } } |