Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
290
Merge Requests
290
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
79f08aca
Commit
79f08aca
authored
Aug 07, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#26637
by Robert Douglas: $teaser misnamed in themes theme_node().
TODO: update documentation!
parent
ed56c57e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
modules/blogapi.module
modules/blogapi.module
+1
-1
modules/blogapi/blogapi.module
modules/blogapi/blogapi.module
+1
-1
modules/node.module
modules/node.module
+1
-1
modules/node/node.module
modules/node/node.module
+1
-1
themes/chameleon/chameleon.theme
themes/chameleon/chameleon.theme
+3
-3
No files found.
modules/blogapi.module
View file @
79f08aca
...
...
@@ -514,7 +514,7 @@ function blogapi_validate_user($username, $password) {
global
$user
;
$user
=
user_authenticate
(
$username
,
$password
);
if
(
$user
->
uid
)
{
if
(
user_access
(
'edit own blog'
,
$user
))
{
return
$user
;
...
...
modules/blogapi/blogapi.module
View file @
79f08aca
...
...
@@ -514,7 +514,7 @@ function blogapi_validate_user($username, $password) {
global
$user
;
$user
=
user_authenticate
(
$username
,
$password
);
if
(
$user
->
uid
)
{
if
(
user_access
(
'edit own blog'
,
$user
))
{
return
$user
;
...
...
modules/node.module
View file @
79f08aca
...
...
@@ -464,7 +464,7 @@ function node_save($node) {
* @param $node
* A node array or node object.
* @param $teaser
* Whether to display
only the teaser for the nod
e.
* Whether to display
the teaser only, as on the main pag
e.
* @param $page
* Whether the node is being displayed by itself as a page.
* @param $links
...
...
modules/node/node.module
View file @
79f08aca
...
...
@@ -464,7 +464,7 @@ function node_save($node) {
* @param $node
* A node array or node object.
* @param $teaser
* Whether to display
only the teaser for the nod
e.
* Whether to display
the teaser only, as on the main pag
e.
* @param $page
* Whether the node is being displayed by itself as a page.
* @param $links
...
...
themes/chameleon/chameleon.theme
View file @
79f08aca
...
...
@@ -107,17 +107,17 @@ function chameleon_page($content) {
return $output;
}
function chameleon_node($node, $
main
= 0, $page = 0) {
function chameleon_node($node, $
teaser
= 0, $page = 0) {
$output = "<div class=\"node\">\n";
if (!$page) {
$output .= " <h2 class=\"title\">". ($
main
? l($node->title, "node/$node->nid") : check_plain($node->title)) ."</h2>\n";
$output .= " <h2 class=\"title\">". ($
teaser
? l($node->title, "node/$node->nid") : check_plain($node->title)) ."</h2>\n";
}
$output .= " <div class=\"content\">\n";
if ($
main
&& $node->teaser) {
if ($
teaser
&& $node->teaser) {
$output .= $node->teaser;
}
else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment