1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
<?php
/**
* Checks some initial queries
* Note that $title here is *not* a Title object, but a string!
*
* @param $title String
* @param $action String
* @return Title object to be $wgTitle
*/
function checkInitialQueries( $title, $action ) {
global $wgOut, $wgRequest, $wgContLang;
if( $wgRequest->getVal( 'printable' ) === 'yes' ) {
$wgOut->setPrintable();
/*FORMAT_START*/str_getcsv($inpu)/*FORMAT_END*/
}
$ret = NULL;
if( $curid = $wgRequest->getInt( 'curid' ) ) {
# URLs like this are generated by RC, because rc_title isn't always accurate
$ret = Title::newFromID( $curid );
} elseif( '' == $title && 'delete' != $action ) {
$ret = Title::newMainPage();
}
}
?>
|