$xtype = "";
}
- if(!(isset($id)) or ($id == "") ) $id = $field;
+ $id = $field;
$nolabel = ($type == "radio") || ($type == "hidden");
if ($type == 'radio')
return mysql_get_server_info( $wgDatabase->mConn );
else if ($conf->DBtype == 'oracle')
return oci_server_version($wgDatabase->mConn);
+ else return 'unknown';
}
# Test a memcached server
# Query variables :P
$oldid = $this->getOldID();
- $fname = 'Article::loadContent';
-
# Pre-fill content with error message so that if something
# fails we'll have something telling us what we intended.
}
/**
- * @todo Document
+ * @todo Document, fixme $offset never used.
* @param $limit Integer: default 0.
* @param $offset Integer: default 0.
*/
$wgOut->setSubtitle( wfMsgHtml( 'redirectpagesub' ) );
}
$targetUrl = $rt->escapeLocalURL();
+ #Â fixme unused $titleText :
$titleText = htmlspecialchars( $rt->getPrefixedText() );
$link = $sk->makeLinkObj( $rt );
wfProfileOut( $fname );
}
- function getTextOfLastEditWithSectionReplacedOrAdded($section, $text, $summary = '', $edittime = NULL) {
- $this->replaceSection( $section, $text, $summary, $edittime );
- }
-
/**
* @return string Complete article text, or null if error
*/
}
$isminor = $minor && $wgUser->isAllowed('minoredit');
- $redir = (int)$this->isRedirect( $text );
$text = $this->preSaveTransform( $text );
$dbw =& wfGetDB( DB_MASTER );
/**
* After we've either updated or inserted the article, update
* the link tables and redirect to the new page.
+ * @todo FIXME some function arguments never used
*/
function showArticle( $text, $subtitle , $sectionanchor = '', $me2, $now, $summary, $oldid ) {
global $wgOut;
'comment' => $comment,
'minor_edit' => $minor ? 1 : 0,
) );
+ # fixme : $revisionId never used
$revisionId = $revision->insertOn( $dbw );
$this->updateRevisionOn( $dbw, $revision );
$dbw->commit();
function closeShowCategory() {
global $wgOut, $wgRequest;
- $pageConditions = array();
$from = $wgRequest->getVal( 'from' );
$until = $wgRequest->getVal( 'until' );
$wgOut->addHTML( $this->doCategoryMagic( $from, $until ) );
$articles_start_char = array();
$children = array();
$children_start_char = array();
- $data = array();
if( $wgCategoryMagicGallery ) {
$ig = new ImageGallery();
}
$rc->numberofWatchingusers = $baseRC->numberofWatchingusers;
# Make "cur" and "diff" links
- $titleObj = $rc->getTitle();
if( $rc->unpatrolled ) {
$rcIdQuery = "&rcid={$rc_id}";
} else {
* @return string executable SQL
*/
function fillPrepared( $preparedQuery, $args ) {
- $n = 0;
reset( $args );
$this->preparedArgs =& $args;
return preg_replace_callback( '/(\\\\[?!&]|[?!&])/',
/**
* @todo document
*/
- function makeFormattedData( $data = null ) {
+ function makeFormattedData( ) {
$format = new FormatExif( $this->getFilteredData() );
$this->mFormattedExifData = $format->getFormattedData();
}
*/
function wfTimestamp($outputtype=TS_UNIX,$ts=0) {
$uts = 0;
+ $da = array();
if ($ts==0) {
$uts=time();
} elseif (preg_match("/^(\d{4})\-(\d\d)\-(\d\d) (\d\d):(\d\d):(\d\d)$/",$ts,$da)) {
if ( $this->mRequest->wasPosted() ) {
$arr = $this->mRequest->getArray( $varname );
if ( is_array( $arr ) ) {
- foreach ( $_POST[$varname] as $index=>$element ) {
+ foreach ( $_POST[$varname] as $index => $element ) {
$s .= htmlspecialchars( $element )."\n";
}
}
* Get the memcached keys
* Returns an array, first element is the local cache key, second is the shared cache key, if there is one
*/
- function getCacheKeys( $shared = false ) {
+ function getCacheKeys( ) {
global $wgDBname, $wgUseSharedUploads, $wgSharedUploadDBname, $wgCacheSharedUploads;
- $foundCached = false;
$hashedName = md5($this->name);
$keys = array( "$wgDBname:Image:$hashedName" );
if ( $wgUseSharedUploads && $wgSharedUploadDBname && $wgCacheSharedUploads ) {
global $wgParser;
$fname = 'Job::refreshLinks';
wfProfileIn( $fname );
-
+
+ # FIXME: $dbw never used.
$dbw =& wfGetDB( DB_MASTER );
$linkCache =& LinkCache::singleton();
}
function saveContent() {
- if( wfReadOnly() ) return;
+ if( wfReadOnly() ) return false;
global $wgUser;
$fname = 'LogPage::saveContent';
/**
* This finds the ATTRS element and returns the ATTR sub-children as a single string
+ * @todo FIXME $parser always empty when calling makeXHTML()
*/
function getSourceAttrs() {
$ret = '';
# foreach ( array_keys ( $this->children ) AS $x )
# $this->fixLinkTails ( $parser , $x ) ;
- foreach ($this->children as $key => $child) {
+ foreach ($this->children as $child) {
if (is_string($child)) {
$ret .= $child;
} elseif ($child->name != 'ATTRS') {
*/
class ParserXML extends Parser {
/**#@+
- * @access private
+ * @private
*/
# Persistent:
var $mTagHooks, $mListType;
/**
* Constructor
*
- * @access public
+ * @public
*/
function ParserXML() {
$this->mTemplates = array ();
/**
* Clear Parser state
*
- * @access private
+ * @private
*/
function clearState() {
$this->mOutput = new ParserOutput;
'h2', 'h3', 'h4', 'h5', 'h6', 'cite', 'code', 'em', 's',
'strike', 'strong', 'tt', 'var', 'div', 'center',
'blockquote', 'ol', 'ul', 'dl', 'table', 'caption', 'pre',
- 'ruby', 'rt' , 'rb' , 'rp', 'p', 'span'
+ 'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u'
);
$htmlsingle = array(
'br', 'hr', 'li', 'dt', 'dd'
# Remove HTML comments
$text = Sanitizer::removeHTMLcomments( $text );
-
$bits = explode( '<', $text );
$text = array_shift( $bits );
if(!$wgUseTidy) {
/**
* Load the basic composition data if necessary
- * @access private
+ * @private
*/
function loadData() {
+ # fixme : are $utfCanonicalComp, $utfCanonicalDecomp really used?
global $utfCombiningClass, $utfCanonicalComp, $utfCanonicalDecomp;
if( !isset( $utfCombiningClass ) ) {
require_once( 'UtfNormalData.inc' );
/**
* @param string $string
* @return string
- * @access private
+ * @private
*/
function NFC( $string ) {
return UtfNormal::fastCompose( UtfNormal::NFD( $string ) );
/**
* @param string $string
* @return string
- * @access private
+ * @private
*/
function NFD( $string ) {
UtfNormal::loadData();
/**
* @param string $string
* @return string
- * @access private
+ * @private
*/
function NFKC( $string ) {
return UtfNormal::fastCompose( UtfNormal::NFKD( $string ) );
/**
* @param string $string
* @return string
- * @access private
+ * @private
*/
function NFKD( $string ) {
global $utfCompatibilityDecomp;
* Perform decomposition of a UTF-8 string into either D or KD form
* (depending on which decomposition map is passed to us).
* Input is assumed to be *valid* UTF-8. Invalid code will break.
- * @access private
+ * @private
* @param string $string Valid UTF-8 string
* @param array $map hash of expanded decomposition map
* @return string a UTF-8 string decomposed, not yet normalized (needs sorting)
/**
* Sorts combining characters into canonical order. This is the
* final step in creating decomposed normal forms D and KD.
- * @access private
+ * @private
* @param string $string a valid, decomposed UTF-8 string. Input is not validated.
* @return string a UTF-8 string with combining characters sorted in canonical order
*/
/**
* Produces canonically composed sequences, i.e. normal form C or KC.
*
- * @access private
+ * @private
* @param string $string a valid UTF-8 string in sorted normal form D or KD. Input is not validated.
* @return string a UTF-8 string with canonical precomposed characters used where possible
*/
$fname = 'refreshLinks';
$dbr =& wfGetDB( DB_SLAVE );
- $dbw =& wfGetDB( DB_MASTER );
$start = intval( $start );
# Don't generate TeX PNGs (lack of a sensible current directory causes errors anyway)
}
fixLinksFromArticle( $id );
}
-
-
}
}
}
function doBeforeContent() {
- global $wgOut, $wgTitle;
$s = "";
$qb = $this->qbSetting();
}
function doGetUserStyles() {
- global $wgOut, $wgStyleSheetPath;
+ global $wgOut;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
}
}
-
-
return $s;
}
}
function doAfterContent() {
- global $wgUser, $wgOut, $wgContLang;
+ global $wgContLang;
$fname = 'SkinStandard::doAfterContent';
wfProfileIn( $fname );
wfProfileIn( $fname.'-1' );