https://bugzilla.wikimedia.org/show_bug.cgi?id=25563

--- Comment #2 from sreher <[email protected]> 2010-10-22 08:40:11 UTC ---
No - so try it and now the mediawiki works with the ForeignDbRepo
configuration. Thanks for the hint, but sadly it is the same thing. 

I follow the path down and mediawiki is using the same function to get the
image description from the repo. 

It use from 
ImagePage.php -> view() - line:62
$this->openShowImage() - line:100  
$this->printSharedImageText() - line:464
$descText = $this->img->getDescriptionText(); - line:486
File.php -> $res = Http::get( $renderUrl ); - line:1090
HttpFunction.php -> request( $method, $url, $timeout = 'default', $curlOptions
= array()) - line:39

I put the following configuration in my LocalSettings.php: 

$wgUseSharedUploads = true;
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = "mw_repository"; 
$wgSharedUploadDBprefix  = "mwr_";
$wgRepositoryBaseUrl =
"http://localhost/mediawiki/mediawiki-repository/index.php/File:";;

$wgUploadPath = "http://localhost/mediawiki/mediawiki-repository/images";; 
$wgSharedUploadPath = 'http://localhost/mediawiki/mediawiki-repository/images';
$wgSharedUploadDirectory =
'/Users/xxx/Sites/mediawiki/mediawiki-repository/images';
$wgHashedSharedUploadDirectory = true;

$wgForeignFileRepos[] = array(
    'class' => 'ForeignDBRepo',
    'name' => 'mediawiki-repository',
    'url' => $wgSharedUploadPath,
    'directory' => $wgSharedUploadDirectory,
    'hashLevels' => 2, // This must be the same for the other family member
    'dbType' => $wgDBtype,
    'dbServer' => $wgDBserver,
    'dbUser' => $wgDBuser,
    'dbPassword' => $wgDBpassword,
    'dbFlags' => DBO_DEFAULT,
    'dbName' => $wgSharedUploadDBname,
    'tablePrefix' => $wgSharedUploadDBprefix,
    'hasSharedCache' => false,
    'descBaseUrl' => $wgRepositoryBaseUrl,
    'fetchDescription' => $wgFetchCommonsDescriptions
);

Is there an other function, which not fetch the description text over http?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to