Extension talk:Page Object Model

Add topic
From mediawiki.org
Latest comment: 14 years ago by Kghbln in topic No extension credits included

Comparison between MediaWiki's DOM Processor[edit]

So how is the functionality different between this extension and MediaWiki's built-in DOM preprocessor? —Sledged (talk) 02:23, 10 September 2009 (UTC)Reply

No extension credits included[edit]

Hi Sergey, is there a reason why you have not included extension credits into the php-file? I think you should. Cheers --kgh 20:48, 17 October 2009 (UTC)Reply

PROBLEM[edit]

In Template.php (svn Revision 85115) on line 24, the strpos function needs the "===" (triple) operator to get valid results (see specification of strpos). The whole part should be:

        if (strpos(trim($first_part), "#") === 0) { //it is neccessary to use "===". See specification of strpos
            if (strpos($first_part, ":") !== False) {
                $splitted = explode(':', $first_part, 2);
                if (count($splitted) == 2) {
                    $first_part = $splitted[0];
                    array_unshift($parts, $splitted[1]);
                }
            }
        }