Index: trunk/extensions/ShortUrl/ShortUrl.functions.php |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | $query = $dbr->select( |
53 | 53 | 'shorturls', |
54 | 54 | array( 'su_id' ), |
55 | | - array( 'su_namespace' => $title->getNamespace(), 'su_title' => $title->getText() ), |
| 55 | + array( 'su_namespace' => $title->getNamespace(), 'su_title' => $title->getDBkey() ), |
56 | 56 | __METHOD__ ); |
57 | 57 | if ( $dbr->numRows( $query ) > 0 ) { |
58 | 58 | $entry = $dbr->fetchRow( $query ); |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | $row_data = array( |
63 | 63 | 'su_id' => $dbw->nextSequenceValue( 'shorturls_id_seq' ), |
64 | 64 | 'su_namespace' => $title->getNamespace(), |
65 | | - 'su_title' => $title->getText() |
| 65 | + 'su_title' => $title->getDBkey() |
66 | 66 | ); |
67 | 67 | $dbw->insert( 'shorturls', $row_data ); |
68 | 68 | $id = $dbw->insertId(); |