core security update
This commit is contained in:
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = poll.test
|
||||
stylesheets[all][] = poll.css
|
||||
|
||||
; Information added by Drupal.org packaging script on 2015-04-02
|
||||
version = "7.36"
|
||||
; Information added by Drupal.org packaging script on 2016-10-05
|
||||
version = "7.51"
|
||||
project = "drupal"
|
||||
datestamp = "1427943826"
|
||||
datestamp = "1475694174"
|
||||
|
||||
|
@@ -191,7 +191,6 @@ function poll_node_info() {
|
||||
'base' => 'poll',
|
||||
'description' => t('A <em>poll</em> is a question with a set of possible responses. A <em>poll</em>, once created, automatically provides a simple running count of the number of votes received for each response.'),
|
||||
'title_label' => t('Question'),
|
||||
'has_body' => FALSE,
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -632,9 +631,6 @@ function poll_delete($node) {
|
||||
* The node object to load.
|
||||
*/
|
||||
function poll_block_latest_poll_view($node) {
|
||||
global $user;
|
||||
$output = '';
|
||||
|
||||
// This is necessary for shared objects because PHP doesn't copy objects, but
|
||||
// passes them by reference. So when the objects are cached it can result in
|
||||
// the wrong output being displayed on subsequent calls. The cloning and
|
||||
@@ -675,9 +671,6 @@ function poll_block_latest_poll_view($node) {
|
||||
* Implements hook_view().
|
||||
*/
|
||||
function poll_view($node, $view_mode) {
|
||||
global $user;
|
||||
$output = '';
|
||||
|
||||
if (!empty($node->allowvotes) && empty($node->show_results)) {
|
||||
$node->content['poll_view_voting'] = drupal_get_form('poll_view_voting', $node);
|
||||
}
|
||||
@@ -695,7 +688,7 @@ function poll_view($node, $view_mode) {
|
||||
function poll_teaser($node) {
|
||||
$teaser = NULL;
|
||||
if (is_array($node->choice)) {
|
||||
foreach ($node->choice as $k => $choice) {
|
||||
foreach ($node->choice as $choice) {
|
||||
if ($choice['chtext'] != '') {
|
||||
$teaser .= '* ' . check_plain($choice['chtext']) . "\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user