Index: trunk/extensions/PageSchemas/specials/GeneratePages.php |
— | — | @@ -29,7 +29,10 @@ |
30 | 30 | //this is when Special:GeneratePages/Category is accessed first time |
31 | 31 | //Here check for the valid Category name and allow for generating pages |
32 | 32 | $title = Title::newFromText( $category, NS_CATEGORY ); |
33 | | - $pageId = $title->getArticleID(); |
| 33 | + $pageId = $title->getArticleID(); |
| 34 | + $test_text = Title::newFromId($pageId)->getText(); |
| 35 | + wfDebugLog( 'myextension', 'newFromId: ' .$test_text ); |
| 36 | + wfDebugLog( 'myextension', 'newFromId->getNamespace(): ' .Title::newFromId($pageId)->getNamespace() ); |
34 | 37 | $dbr = wfGetDB( DB_SLAVE ); |
35 | 38 | //get the result set, query : slect page_props |
36 | 39 | $res = $dbr->select( 'page_props', |
— | — | @@ -48,7 +51,7 @@ |
49 | 52 | if( $row != null ){ |
50 | 53 | $wgOut->addHTML($text_2); |
51 | 54 | }else { |
52 | | - $text = "<p>No such category exist ! </p>"; |
| 55 | + $text = "<p>Error: there is no page schema defined for that category in the wiki. </p>"; |
53 | 56 | $wgOut->addHTML( $text ); |
54 | 57 | } |
55 | 58 | } |