Skip to content

Commit

Permalink
[391] Fixed Armory news displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadez committed Sep 11, 2010
1 parent 78ca54c commit 9d133f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/revision_nr.php
@@ -1,5 +1,5 @@
<?php
define('ARMORY_REVISION', 390);
define('ARMORY_REVISION', 391);
define('DB_VERSION', 'armory_r383');
define('CONFIG_VERSION', '0708201001');
?>
6 changes: 3 additions & 3 deletions newsfeed.php
Expand Up @@ -3,7 +3,7 @@
/**
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 375
* @revision 391
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -40,8 +40,8 @@
$xml->XMLWriter()->startElement('story');
$xml->XMLWriter()->writeAttribute('permalink', null);
$xml->XMLWriter()->writeAttribute('title', $news['title']);
if(preg_match('/&/', $news_item['text'])) {
$news_item['text'] = str_replace('&', '&amp;', $news_item['text']);
if(preg_match('/&/', $news['text'])) {
$news['text'] = str_replace('&', '&amp;', $news['text']);
}
$xml->XMLWriter()->text($news['text']);
$xml->XMLWriter()->endElement(); //story
Expand Down

0 comments on commit 9d133f6

Please sign in to comment.