~ubuntu-branches/ubuntu/raring/webcalendar/raring

« back to all changes in this revision

Viewing changes to debian/patches/03_login_lean.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-06-09 06:26:24 UTC
  • mfrom: (18.2.3 karmic)
  • Revision ID: james.westby@ubuntu.com-20090609062624-9n9xea2ftpipmg38
Tags: 1.2.0+dfsg-4
* debian/patches/06_send-reminder-paths.diff: Adjust patch to help
  translate.php to find the translation files under /etc/webcalendar.
  Thanks to Dale and Cheryl Schroeder for the help on debugging this
  (really, closes: #531312).
* debian/patches/16_no-blink-public-access-title.diff: New patch for
  avoiding the blinking title when changing the Public Access title in
  English-US.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
##
3
 
## All lines beginning with `## DP:' are a description of the patch.
4
 
## DP: Shrink login description to one line.
5
 
 
6
 
@DPATCH@
7
 
--- webcalendar-0.9.45.orig/includes/user.php
8
 
+++ webcalendar-0.9.45/includes/user.php
9
 
@@ -41,8 +41,7 @@
10
 
       if ( $row[0] == $login )
11
 
         $ret = true; // found login/password
12
 
       else
13
 
-        $error = translate ("Invalid login") . ": " .
14
 
-          translate("incorrect password");
15
 
+        $error = translate ("Invalid login");
16
 
     } else {
17
 
       $error = translate ("Invalid login");
18
 
       // Could be no such user or bad password
19
 
@@ -53,12 +52,10 @@
20
 
         $row = dbi_fetch_row ( $res2 );
21
 
         if ( $row && ! empty ( $row[0] ) ) {
22
 
           // got a valid username, but wrong password
23
 
-          $error = translate ("Invalid login") . ": " .
24
 
-            translate("incorrect password" );
25
 
+          $error = translate ("Invalid login");
26
 
         } else {
27
 
           // No such user.
28
 
-          $error = translate ("Invalid login") . ": " .
29
 
-            translate("no such user" );
30
 
+          $error = translate ("Invalid login");
31
 
         }
32
 
         dbi_free_result ( $res2 );
33
 
       }