Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | |
68 | 68 | class ExtMobileFrontend { |
69 | | - const VERSION = '0.5.58'; |
| 69 | + const VERSION = '0.5.59'; |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var DOMDocument |
— | — | @@ -728,13 +728,12 @@ |
729 | 729 | return $itemToRemoveRecords; |
730 | 730 | } |
731 | 731 | |
732 | | - private function getClassElement($DOMElement, $Node, $className) { |
| 732 | + private function getClassElement( $DOMElement, $className ) { |
733 | 733 | $children = $DOMElement->childNodes; |
734 | 734 | foreach ( $children as $child ) { |
735 | 735 | if ( $child->hasAttributes() && |
736 | 736 | $child->getAttribute( 'class' ) == $className ) { |
737 | | - $$Node = $child; |
738 | | - return $$Node; |
| 737 | + return $child; |
739 | 738 | } |
740 | 739 | } |
741 | 740 | return $DOMElement; |
— | — | @@ -759,10 +758,10 @@ |
760 | 759 | switch ( self::$code ) { |
761 | 760 | case 'de': |
762 | 761 | $featuredArticle = $this->mainPage->getElementById( 'hauptseite-artikel' ); |
763 | | - $featuredArticle = $this->getClassElement($featuredArticle, 'featuredArticle', 'inhalt' ); |
| 762 | + $featuredArticle = $this->getClassElement($featuredArticle, 'inhalt' ); |
764 | 763 | |
765 | 764 | $newsItems = $this->mainPage->getElementById( 'hauptseite-nachrichten' ); |
766 | | - $newsItems = $this->getClassElement($newsItems, 'newsItems', 'inhalt' ); |
| 765 | + $newsItems = $this->getClassElement($newsItems, 'inhalt' ); |
767 | 766 | break; |
768 | 767 | case 'fr': |
769 | 768 | $featuredArticle = $this->mainPage->getElementById( 'accueil-lumieresur' ); |
— | — | @@ -770,7 +769,7 @@ |
771 | 770 | break; |
772 | 771 | case 'ku': |
773 | 772 | $newsItems = $this->mainPage->getElementById( 'hauptseite-wikipedia' ); |
774 | | - $newsItems = $this->getClassElement($newsItems, 'newsItems', 'inhalt' ); |
| 773 | + $newsItems = $this->getClassElement($newsItems, 'inhalt' ); |
775 | 774 | break; |
776 | 775 | case 'bh': |
777 | 776 | $featuredArticle = $this->mainPage->getElementById( 'mp-featured_article' ); |