~yoboy-leguesh/ubuntu-fr-doc/maj20150810a

« back to all changes in this revision

Viewing changes to lib/plugins/extension/helper/repository.php

  • Committer: YoBoY
  • Date: 2015-11-11 10:05:14 UTC
  • Revision ID: yoboy.leguesh@gmail.com-20151111100514-bw7p06lrhban4g2t
Mise à jour vers Dokuwiki 2015-08-10a avec nos patchs

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
            $request_needed = false;
33
33
            foreach ($list as $name) {
34
34
                $cache = new cache('##extension_manager##'.$name, '.repo');
35
 
                $result = null;
 
35
 
36
36
                if (!isset($this->loaded_extensions[$name]) && $this->hasAccess() && !$cache->useCache(array('age' => 3600 * 24))) {
37
37
                    $this->loaded_extensions[$name] = true;
38
38
                    $request_data['ext'][] = $name;
64
64
    public function hasAccess() {
65
65
        if ($this->has_access === null) {
66
66
            $cache = new cache('##extension_manager###hasAccess', '.repo');
67
 
            $result = null;
 
67
 
68
68
            if (!$cache->useCache(array('age' => 3600 * 24, 'purge'=>1))) {
69
69
                $httpclient = new DokuHTTPClient();
70
70
                $httpclient->timeout = 5;
91
91
     */
92
92
    public function getData($name) {
93
93
        $cache = new cache('##extension_manager##'.$name, '.repo');
94
 
        $result = null;
 
94
 
95
95
        if (!isset($this->loaded_extensions[$name]) && $this->hasAccess() && !$cache->useCache(array('age' => 3600 * 24))) {
96
96
            $this->loaded_extensions[$name] = true;
97
97
            $httpclient = new DokuHTTPClient();