Changeset 4908 in project


Ignore:
Timestamp:
07/05/07 23:09:01 (13 years ago)
Author:
azul
Message:

Use svnwiki:rating:*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stream-wiki/trunk/extensions/rating.scm

    r4395 r4908  
    1919  (create-rating-helper env)
    2020  (let-from-environment env (path-out-real path path-in static-url)
    21     (when (and (string=? (get-props-parents-first "rating:ignore" path-in path "no") "no")
     21    (when (and (string=? (get-props-parents-first "rating:ignore" path-in path "no") "no") ; Deprecated
     22               (string=? (get-props-parents-first "svnwiki:rating:ignore" path-in path "no") "no")
    2223               (not (svnwiki-is-special? #f path)))
    2324      (let ((span-id (format #f "div-rating-~A" (random 100000)))
     
    3132            ((script type "text/javascript")
    3233             (format #f "<!--~%rating.url = \"~A\";~%if (typeof(rating.updateStats) == 'function') { rating.loadXml('~A', function (x) { rating.updateStats(x, '~A'); }); }~%-->"
    33                      (or (get-props-parents-first "rating:application-url" path-in path)
     34                     (or (get-props-parents-first "rating:application-url" path-in path) ; Deprecated
     35                         (get-props-parents-first "svnwiki:rating:application-url" path-in path)
    3436                         (get-props-parents-first "svnwiki:application-url" path-in path)
    3537                         (error "Wiki does not define svnwiki:application-url"))
     
    163165  (let-from-environment env (path-in path)
    164166    (or (svnwiki-is-special? #f path)
    165         (string=? (get-props-parents-first "rating:ignore" path-in path "no") "yes"))))
     167        (string=? (get-props-parents-first "rating:ignore" path-in path "no") "yes") ; Deprecated
     168        (string=? (get-props-parents-first "svnwiki:rating:ignore" path-in path "no") "yes"))))
    166169
    167170(define (make-rating-special path)
Note: See TracChangeset for help on using the changeset viewer.