Avar casts lvl 5 enhance to Licenses.php:
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 30 Aug 2005 19:22:31 +0000 (19:22 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 30 Aug 2005 19:22:31 +0000 (19:22 +0000)
*Support for template paramaters

includes/Licenses.php

index eedc2cd..1d78c31 100644 (file)
@@ -27,7 +27,8 @@ class Licenses {
         * @var string
         */
        var $html;
-
+       /**#@-*/
+       
        /**
         * Constrictor
         *
@@ -163,10 +164,10 @@ class License {
         * @param string $str
         */
        function License( $str ) {
-               list( $template, $text ) = explode( '|', $str, 2 );
+               list( $text, $template ) = explode( '|', strrev( $str ), 2 );
                
-               $this->template = $template;
-               $this->text = $text;
+               $this->template = strrev( $template );
+               $this->text = strrev( $text );
        }
 }
 ?>