- Removing early experimental tab code that slipped in.

- Fixing a copy paste error in file.inc.
- Some double => single quote changes.
4.5.x
Kjartan Mannes 2004-06-02 18:26:44 +00:00
parent 3c50b9c26f
commit c3463a22ae
3 changed files with 4 additions and 29 deletions

View File

@ -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];

View File

@ -4,7 +4,7 @@
/**
* @defgroup common Core functions
*/
/**
* @name Page title
* @ingroup common
@ -92,31 +92,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

View File

@ -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;
}
}