summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-02-20 23:09:18 +0000
committerPascal Terjan <pterjan@mageia.org>2012-02-20 23:09:18 +0000
commit3c3129c50c9beb6362651fec18e32c200906ba8f (patch)
treebc089faff5896f681c7a1b80c721c99136b14bc3 /index.php
parent4a2d4ab0999b888141e67e54786b51552517600f (diff)
downloadpkgsubmit-3c3129c50c9beb6362651fec18e32c200906ba8f.tar
pkgsubmit-3c3129c50c9beb6362651fec18e32c200906ba8f.tar.gz
pkgsubmit-3c3129c50c9beb6362651fec18e32c200906ba8f.tar.bz2
pkgsubmit-3c3129c50c9beb6362651fec18e32c200906ba8f.tar.xz
pkgsubmit-3c3129c50c9beb6362651fec18e32c200906ba8f.zip
Simplify, the reason why preg_match_all didn't work was because it wanted matches parameter
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index b7a1f69..c6313e9 100644
--- a/index.php
+++ b/index.php
@@ -321,7 +321,7 @@ if (!is_null($g_user) || $_GET['package'])
if (!$_GET['package']) {
-$missing_deps_count = preg_match_all("/<item>/m", strtr(file_get_contents("http://check.mageia.org/cauldron/dependencies.rss"), "\n", " "), $matches);
+$missing_deps_count = preg_match_all("/<item>/m", file_get_contents("http://check.mageia.org/cauldron/dependencies.rss"), $matches);
$unmaintained_count = count(file(__DIR__ . '/data/unmaintained.txt'));
if ($missing_deps_count > 0 || $unmaintained_count > 0) {
echo "<p>";