|
Lines 190-195
sub get_opac_news {
Link Here
|
| 190 |
|
190 |
|
| 191 |
sub GetNewsToDisplay { |
191 |
sub GetNewsToDisplay { |
| 192 |
my ($lang,$branch) = @_; |
192 |
my ($lang,$branch) = @_; |
|
|
193 |
|
| 193 |
my $dbh = C4::Context->dbh; |
194 |
my $dbh = C4::Context->dbh; |
| 194 |
# SELECT *,DATE_FORMAT(timestamp, '%d/%m/%Y') AS newdate |
195 |
# SELECT *,DATE_FORMAT(timestamp, '%d/%m/%Y') AS newdate |
| 195 |
my $query = q{ |
196 |
my $query = q{ |
|
Lines 216-222
sub GetNewsToDisplay {
Link Here
|
| 216 |
$sth->execute($lang,$branch); |
217 |
$sth->execute($lang,$branch); |
| 217 |
my @results; |
218 |
my @results; |
| 218 |
while ( my $row = $sth->fetchrow_hashref ){ |
219 |
while ( my $row = $sth->fetchrow_hashref ){ |
| 219 |
$row->{newdate} = output_pref({ dt => dt_from_string( $row->{newdate} ), dateonly => 1 }); |
220 |
$row->{newdate} = output_pref({ dt => dt_from_string( $row->{newdate}, 'iso' ), dateonly => 1 }); |
| 220 |
push @results, $row; |
221 |
push @results, $row; |
| 221 |
} |
222 |
} |
| 222 |
return \@results; |
223 |
return \@results; |