Revision: 327 http://opencsw.svn.sourceforge.net/opencsw/?rev=327&view=rev Author: wbonnet Date: 2011-02-23 23:36:00 +0000 (Wed, 23 Feb 2011)
Log Message: ----------- Add pending packages in GAR Modified Paths: -------------- web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php Modified: web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php =================================================================== --- web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php 2011-02-23 23:34:07 UTC (rev 326) +++ web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php 2011-02-23 23:36:00 UTC (rev 327) @@ -57,9 +57,8 @@ global $wp_rewrite; global $wp_query; -print_r ($wp_query->query ); - // Initialization of the array containing the rules for url rewriting + // Initialization of the array containing the rules for url rewriting $newRules = array( '^maintainers?/(.+)' => 'index.php?displayMaintainerInfo=1&maintainerName=' . $wp_rewrite->preg_index(1) , '^maintainers$' => 'index.php?maintainers=full' , '^about/maintainers' => 'index.php?maintainers=full' , @@ -78,6 +77,7 @@ '^qa/packages/uwatch/errors?$' => 'index.php?qaUwatchError=full' , '^qa/packages/uwatch/disabled$' => 'index.php?qaUwatchDisabled=full' , '^qa/packages/gar/missing$' => 'index.php?qaGarMissing=full' , + '^qa/packages/gar/pending$' => 'index.php?qaGarPending=full' , '^qa/maintainers/retired' => 'index.php?qaRetiredMaintainers=full' , '^qa/maintainers/activity' => 'index.php?qaMaintainersActivity=full' , @@ -136,6 +136,7 @@ $qvars[] = 'qaUwatchDisabled'; $qvars[] = 'qaUwatchError'; $qvars[] = 'qaGarMissing'; + $qvars[] = 'qaGarPending'; $qvars[] = 'qaPackageWaitingForStable'; $qvars[] = 'qaPackageWaitingForTesting'; $qvars[] = 'qaPackageWaitingForUnstable'; @@ -222,6 +223,18 @@ } } + // Test if the arg qaGarPending is in the query string + if ( $wp_query->get('qaGarPending') ) + { + // Yes, thus we are display a detailled maintainer page, not the full list + if (file_exists( TEMPLATEPATH . '/qa-gar-pending.php' )) + { + // File exist, thus lets include the template + include( TEMPLATEPATH . '/qa-gar-pending.php' ); + exit; + } + } + // Test if the arg maintainers is in the query string if ( $wp_query->get('qaMaintainers') ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel