OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 29-Jul-2008 21:23:46
Branch: HEAD Handle: 2008072920234500
Modified files:
openpkg-src/drupal drupal.patch drupal.spec
Log:
reduce BLOG block to just 5 items
Summary:
Revision Changes Path
1.28 +12 -5 openpkg-src/drupal/drupal.patch
1.314 +1 -1 openpkg-src/drupal/drupal.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/drupal/drupal.patch
============================================================================
$ cvs diff -u -r1.27 -r1.28 drupal.patch
--- openpkg-src/drupal/drupal.patch 26 Jun 2008 18:27:23 -0000 1.27
+++ openpkg-src/drupal/drupal.patch 29 Jul 2008 19:23:45 -0000 1.28
@@ -344,7 +344,7 @@
--- /dev/null 2008-05-02 21:08:21 +0200
+++ sites/all/modules/img_assist/img_assist_popup.js 2008-05-02 21:05:56
+0200
@@ -0,0 +1,20 @@
-+/* $Id: drupal.patch,v 1.27 2008/06/26 18:27:23 rse Exp $ */
++/* $Id: drupal.patch,v 1.28 2008/07/29 19:23:45 rse Exp $ */
+
+function launch_popup(nid, mw, mh) {
+ var ox = mw;
@@ -887,9 +887,9 @@
db_rewrite_sql() calls which seem to introduce a wrong ordering.
Index: modules/blog/blog.module
---- modules/blog/blog.module.orig 2008-04-09 23:11:45 +0200
-+++ modules/blog/blog.module 2008-06-26 17:20:15 +0200
-@@ -182,7 +182,7 @@
+--- modules/blog/blog.module.orig 2008-05-19 09:27:35 +0200
++++ modules/blog/blog.module 2008-07-29 21:20:42 +0200
+@@ -182,13 +182,13 @@
* Helper function to determine if a user has blog posts already.
*/
function _blog_post_exists($account) {
@@ -898,12 +898,19 @@
}
/**
+ * Implementation of hook_block().
+ *
+- * Displays the most recent 10 blog titles.
++ * Displays the most recent 5 blog titles.
+ */
+ function blog_block($op = 'list', $delta = 0) {
+ global $user;
@@ -198,7 +198,7 @@
}
else if ($op == 'view') {
if (user_access('access content')) {
- $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title,
n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY
n.created DESC"), 0, 10);
-+ $result = db_query_range("SELECT n.nid, n.title, n.created FROM
{node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC", 0,
10);
++ $result = db_query_range("SELECT n.nid, n.title, n.created FROM
{node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC", 0, 5);
if ($node_title_list = node_title_list($result)) {
$block['content'] = $node_title_list;
$block['content'] .= theme('more_link', url('blog'), t('Read the
latest blog entries.'));
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/drupal/drupal.spec
============================================================================
$ cvs diff -u -r1.313 -r1.314 drupal.spec
--- openpkg-src/drupal/drupal.spec 28 Jul 2008 15:25:37 -0000 1.313
+++ openpkg-src/drupal/drupal.spec 29 Jul 2008 19:23:45 -0000 1.314
@@ -226,7 +226,7 @@
Group: CMS
License: GPL
Version: %{V_drupal}
-Release: 20080728
+Release: 20080729
# package options
%option with_mysql yes
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]