mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
[fix] Upgrade to 2014-05-05a version (Security Hotfix 2014-05-05a for Issue 765).
This commit is contained in:
parent
62ecf29433
commit
762c296229
4 changed files with 8 additions and 8 deletions
|
@ -1 +1 @@
|
|||
2014-05-05 "Ponder Stibbons"
|
||||
2014-05-05a "Ponder Stibbons"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
// update message version
|
||||
$updateVersion = 44;
|
||||
$updateVersion = 44.1;
|
||||
|
||||
// xdebug_start_profiling();
|
||||
|
||||
|
|
|
@ -1428,14 +1428,14 @@ function tpl_mediaFileList() {
|
|||
* @author Kate Arzamastseva <pshns@ukr.net>
|
||||
*/
|
||||
function tpl_mediaFileDetails($image, $rev) {
|
||||
global $AUTH, $NS, $conf, $DEL, $lang;
|
||||
global $conf, $DEL, $lang;
|
||||
/** @var Input $INPUT */
|
||||
global $INPUT;
|
||||
|
||||
$removed = (!file_exists(mediaFN($image)) && file_exists(mediaMetaFN($image, '.changes')) && $conf['mediarevisions']);
|
||||
if(!$image || (!file_exists(mediaFN($image)) && !$removed) || $DEL) return;
|
||||
if($rev && !file_exists(mediaFN($image, $rev))) $rev = false;
|
||||
if(isset($NS) && getNS($image) != $NS) return;
|
||||
$ns = getNS($image);
|
||||
$do = $INPUT->str('mediado');
|
||||
|
||||
$opened_tab = $INPUT->str('tab_details');
|
||||
|
@ -1471,13 +1471,13 @@ function tpl_mediaFileDetails($image, $rev) {
|
|||
echo '<div class="panelContent">'.NL;
|
||||
|
||||
if($opened_tab == 'view') {
|
||||
media_tab_view($image, $NS, $AUTH, $rev);
|
||||
media_tab_view($image, $ns, null, $rev);
|
||||
|
||||
} elseif($opened_tab == 'edit' && !$removed) {
|
||||
media_tab_edit($image, $NS, $AUTH);
|
||||
media_tab_edit($image, $ns);
|
||||
|
||||
} elseif($opened_tab == 'history' && $conf['mediarevisions']) {
|
||||
media_tab_history($image, $NS, $AUTH);
|
||||
media_tab_history($image, $ns);
|
||||
}
|
||||
|
||||
echo '</div>'.NL;
|
||||
|
|
|
@ -254,7 +254,7 @@ function ajax_mediadiff(){
|
|||
|
||||
$image = '';
|
||||
if ($INPUT->has('image')) $image = cleanID($INPUT->str('image'));
|
||||
$NS = $INPUT->post->str('ns');
|
||||
$NS = getNS($image);
|
||||
$auth = auth_quickaclcheck("$NS:*");
|
||||
media_diff($image, $NS, $auth, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue